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

Merge pull request #1299 from psychocrypt/fix-cudaArchitectureDetection

fix cuda architecture detection
parents 5ce9892b c3b687c0
No related branches found
No related tags found
No related merge requests found
......@@ -483,7 +483,7 @@ extern "C" int cuda_get_deviceinfo(nvid_ctx* ctx)
* with a sm_20 only compiled binary
*/
for(int i = 0; i < arch.size(); ++i)
if(minSupportedArch == 0 || (arch[i] >= 30 && arch[i] < minSupportedArch))
if(arch[i] >= 30 && (minSupportedArch == 0 || arch[i] < minSupportedArch))
minSupportedArch = arch[i];
if(minSupportedArch < 30 || gpuArch < minSupportedArch)
{
......
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