summaryrefslogtreecommitdiffstats
path: root/xmrstak/backend/nvidia/nvcc_code
diff options
context:
space:
mode:
authorfireice-uk <fireice-uk@users.noreply.github.com>2017-11-17 10:51:53 +0000
committerGitHub <noreply@github.com>2017-11-17 10:51:53 +0000
commit629542ae4d9686315fae4f8acfef42401710834a (patch)
tree97e773ce678bf59ff65be36a95b0a456a03e354c /xmrstak/backend/nvidia/nvcc_code
parentabae75d4fde830ad34852b886063098ff9203d3b (diff)
parent656c55309f51cf089f2a1a3f7df7827544d07701 (diff)
downloadxmr-stak-629542ae4d9686315fae4f8acfef42401710834a.zip
xmr-stak-629542ae4d9686315fae4f8acfef42401710834a.tar.gz
Merge pull request #133 from psychocrypt/fix-cudaArchBinaryDetection
fix wrong cuda binary arch detection
Diffstat (limited to 'xmrstak/backend/nvidia/nvcc_code')
-rw-r--r--xmrstak/backend/nvidia/nvcc_code/cuda_extra.cu2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmrstak/backend/nvidia/nvcc_code/cuda_extra.cu b/xmrstak/backend/nvidia/nvcc_code/cuda_extra.cu
index 12c935a..5501d8d 100644
--- a/xmrstak/backend/nvidia/nvcc_code/cuda_extra.cu
+++ b/xmrstak/backend/nvidia/nvcc_code/cuda_extra.cu
@@ -364,7 +364,7 @@ extern "C" int cuda_get_deviceinfo(nvid_ctx* ctx)
for(int i = 0; i < arch.size(); ++i)
if(minSupportedArch == 0 || (arch[i] >= 30 && arch[i] < minSupportedArch))
minSupportedArch = arch[i];
- if(minSupportedArch >= 30 && gpuArch <= minSupportedArch)
+ if(minSupportedArch < 30 || gpuArch < minSupportedArch)
{
printf("WARNING: NVIDIA GPU %d: miner not compiled for the gpu architecture %d.\n", ctx->device_id, gpuArch);
return 5;
OpenPOWER on IntegriCloud