Fix T40119, CUDA Toolkit version mismatch

This commit is contained in:
Thomas Dinges
2014-05-10 01:26:04 +02:00
parent d5588fd658
commit fd26a32aa5

View File

@@ -297,12 +297,11 @@ public:
return "";
}
if(cuda_version < 50) {
printf("Unsupported CUDA version %d.%d detected, you need CUDA 5.0.\n", cuda_version/10, cuda_version%10);
printf("Unsupported CUDA version %d.%d detected, you need CUDA 6.0.\n", cuda_version/10, cuda_version%10);
return "";
}
else if(cuda_version > 50)
printf("CUDA version %d.%d detected, build may succeed but only CUDA 5.0 is officially supported.\n", cuda_version/10, cuda_version%10);
else if(cuda_version != 60)
printf("CUDA version %d.%d detected, build may succeed but only CUDA 6.0 is officially supported.\n", cuda_version/10, cuda_version%10);
/* compile */
string kernel = path_join(kernel_path, "kernel.cu");