使用 VS5 编译 CUDA 2012 时出现错误"nvcc cannot find a supported cl version"
Error "nvcc cannot find a supported cl version" when compiling CUDA 5 with VS2012
我按照这里的说明编译cuda 5与visual studio 2012,但我仍然收到这个:
nvcc : fatal error : nvcc cannot find a supported cl version. Only MSVC 9.0 and MSVC 10.0 are supported
什么会导致这个问题?
如果你的代码使用动态并行,你需要使用msvc2010
至少对我来说,Corvella的答案起作用了,我用VS2012和CUDA支持构建了OpenCV 2.4.5(来自OpenCV官方网站)和Emgu(来自Emgu git,支持OpenCV 2.4.9),两者都成功了。我用的是Windows 7 64和Windows 8 64。当您错过某些.cu文件的"构建自定义"时,会发生错误。即使这只是开始,你也会遇到许多其他的错误。好运!
相关文章:
- 赛通"Cannot take address of memoryview slice"
- C++:如何将 unix 时间的字符串转换为 *tm?(使用时间错误:"cannot convert 'String' to 'tm*' ")
- /usr/bin/ld: cannot find -lc++
- NVCC 错误:string_view.h:constexpr 函数返回是非常量
- Cannot find -lglad
- "Cannot find -l<directory>"错误 - CMake
- Windows cannot find MinGW
- Visual Studio "fatal error LNK1104: cannot open file"未使用或包含的库
- 定义 uint= "unsigned int" 没有像我在 Visual Studio 中使用 nvcc 时预期的那样应用
- "Cannot convert Python object argument to type '<typename>'" - 使用 Cython 包装 C++ 类时出错
- 由于缺少类模板,NVCC 编译面向对象代码时出现问题
- SFINAE:"enable_if cannot be used to disable this declaration"
- 命令提示符下的 NVCC CUDA 不使用 GPU
- cannot find -lMagick++-6.Q16
- C++ "'Shape': cannot instantiate abstract class"找不到问题的根源
- CMake还将所有gcc标志传递给nvcc
- 我一直收到错误"cannot convert 'float*' to 'float' in return"
- 使用nvcc(CUDA-RINSIDE)正确链接对象文件
- 封送指向结构异常"cannot Read or Write protected memory"的指针数组的指针数组
- 使用 VS5 编译 CUDA 2012 时出现错误"nvcc cannot find a supported cl version"