Unsupported gpu architecture 'compute_11'解决方法
2015-05-04 20:44
357 查看
环境背景:
由于项目需要,在ubuntu service 14.04 下搭建 OpenCL +OpenCV 环境, 前期安装了 CUDA7.0 ,GPU为 NVIDIA TITAN 。
问题描述:
按照网上教程安装OpenCV ,在make 时出现错误,错误提示如下:
解决方法:
百度无果,求助万能谷歌。有高人回答如下:
When using cmake to do configurations, set the option CUDA_GENERATION to specific your GPU architecture. I ran across the same error and tried this to work out the problem.
this worked for me and shows a possible value for CUDA_GENERATION:
然后,这个问题就奇迹般的解决了。
总结:
This let me install opencv-2.4.9.
另外一种解决方案:
Another option. Ubuntu 14.04, GTX Titan X, opencv-2.4.10
I also applied the patch:
https://github.com/Itseez/opencv/pull/3886/files
but I’m not sure whether it ended up being needed. I had tried with and without >CUDA_GENERATION=Maxwell but Maxwell isn’t detected. I did not try >CUDA_GENERATION=Auto prior to the patch, that’s why I don’t know for sure.
由于项目需要,在ubuntu service 14.04 下搭建 OpenCL +OpenCV 环境, 前期安装了 CUDA7.0 ,GPU为 NVIDIA TITAN 。
问题描述:
按照网上教程安装OpenCV ,在make 时出现错误,错误提示如下:
nvcc fatal : Unsupported gpu architecture 'compute_11' CMake Error at cuda_compile_generated_matrix_operations.cu.o.cmake:206 (message): Error generating /home/smie/Documents/opencv2.4.11/build/modules/core/CMakeFiles/cuda_compile.dir/__/dynamicuda/src/cuda/./cuda_compile_gene rated_matrix_operations.cu.o make[2]: *** [modules/core/CMakeFiles/cuda_compile.dir/__/dynamicuda/src/cuda/./cuda_compile_generated_matrix_operations.cu.o] Error 1 make[1]: *** [modules/core/CMakeFiles/opencv_core.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs....
解决方法:
百度无果,求助万能谷歌。有高人回答如下:
When using cmake to do configurations, set the option CUDA_GENERATION to specific your GPU architecture. I ran across the same error and tried this to work out the problem.
this worked for me and shows a possible value for CUDA_GENERATION:
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D CUDA_GENERATION=Kepler ..
然后,这个问题就奇迹般的解决了。
总结:
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D CUDA_GENERATION=Kepler ..
This let me install opencv-2.4.9.
另外一种解决方案:
Another option. Ubuntu 14.04, GTX Titan X, opencv-2.4.10
cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_TIFF=ON -D BUILD_EXAMPLES=ON -D CUDA_GENERATION=Auto -D BUILD_NEW_PYTHON_SUPPORT=ON ..
I also applied the patch:
https://github.com/Itseez/opencv/pull/3886/files
but I’m not sure whether it ended up being needed. I had tried with and without >CUDA_GENERATION=Maxwell but Maxwell isn’t detected. I did not try >CUDA_GENERATION=Auto prior to the patch, that’s why I don’t know for sure.
相关文章推荐
- Unsupported gpu architecture 'compute_11'解决方法
- OpenCV安装教程及错误:Unsupported gpu architecture 'compute_11' 解决方法
- Unsupported gpu architecture 'compute_11'解决方法
- Unsupported gpu architecture 'compute_*'2017解决方法
- Unsupported gpu architecture 'compute_11'解决方法
- Unsupported gpu architecture 'compute_11'解决方法
- Unsupported gpu architecture 'compute_11'解决方法
- linux下出现architecture of input file `*.o' is incompatible with i386:x86-64 output的解决方法
- error: invalid deployment target '6.1.0' for architecture 'arm64' (requires '7.0.0' or later)问题的解决方法
- jython在eclipse控制台出现Failed to install '': java.nio.charset.UnsupportedCharsetException: cp0解决方法
- win7和vista下,[tomcat7]解压缩版本作为后台服务方法(解决Failed installing 'Tomcat7' service方法)
- VB使用Winsock出现 实时错误 '87' 解决方法
- VM(虚拟机安装win7 提示 :units specified don't exist, SHSUCDX can't install)解决方法
- 手把手教你:python读取.htm文件报错:UnicodeDecodeError: 'utf8' codec can't decode byte 0xb3 in position 0的解决方法
- ERROR: UNKNOWN COMMAND 'CRUNCH' 解决方法
- 存储过程里出错:在将 nvarchar 值 'MAX' 转换成数据类型 smallint 时失败, 的终极解决方法
- error C2664: 'CWnd::MessageBoxW' : cannot convert parameter 1 from 'char *' to 'LPCTSTR'的解决方法
- java.sql.SQLException: Value'0000-00-00'错误解决方法
- CentOS6.5系统"libc.so.6: version 'GLIBC_2.15' not found"解决方法
- ios:程序打包时出现The identity 'iPhone Distribution:XXX doesn't match any valid的解决方法