Skip to content
Snippets Groups Projects
Unverified Commit 629542ae authored by fireice-uk's avatar fireice-uk Committed by GitHub
Browse files

Merge pull request #133 from psychocrypt/fix-cudaArchBinaryDetection

fix wrong cuda binary arch detection
parents abae75d4 656c5530
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) ...@@ -364,7 +364,7 @@ extern "C" int cuda_get_deviceinfo(nvid_ctx* ctx)
for(int i = 0; i < arch.size(); ++i) for(int i = 0; i < arch.size(); ++i)
if(minSupportedArch == 0 || (arch[i] >= 30 && arch[i] < minSupportedArch)) if(minSupportedArch == 0 || (arch[i] >= 30 && arch[i] < minSupportedArch))
minSupportedArch = arch[i]; 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); printf("WARNING: NVIDIA GPU %d: miner not compiled for the gpu architecture %d.\n", ctx->device_id, gpuArch);
return 5; 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