Skip to content
Snippets Groups Projects
Commit 656c5530 authored by psychocrypt's avatar psychocrypt
Browse files

fix wrong cuda binary arch detection

fix wrong arch comparsion
parent 51c7b26e
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment