summaryrefslogtreecommitdiffstats
path: root/xmrstak/backend/nvidia
diff options
context:
space:
mode:
authorpsychocrypt <psychocrypt@users.noreply.github.com>2017-11-17 09:32:27 +0100
committerpsychocrypt <psychocrypt@users.noreply.github.com>2017-11-17 09:32:27 +0100
commit656c55309f51cf089f2a1a3f7df7827544d07701 (patch)
tree889c338986c26fa5f67d72fa9e016d6e9b136772 /xmrstak/backend/nvidia
parent51c7b26e7ede58de8eeb883e374e22e62e39e1ad (diff)
downloadxmr-stak-656c55309f51cf089f2a1a3f7df7827544d07701.zip
xmr-stak-656c55309f51cf089f2a1a3f7df7827544d07701.tar.gz
fix wrong cuda binary arch detection
fix wrong arch comparsion
Diffstat (limited to 'xmrstak/backend/nvidia')
-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 9923cb2..55b9f65 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