Unsupported gpu architecture 'compute_11'解决方法
2016-06-13 16:30
501 查看
环境背景:
由于项目需要,在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 -D WITH_TBB=ON -D BUILD_NEW_PYTHON_SUPPORT=ON -D WITH_V4L=ON -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D BUILD_EXAMPLES=ON -D WITH_QT=OFF -D WITH_OPENGL=ON -D BUILD_TIFF=ON ..
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.
相关文章推荐
- 【PHP】linux搭建PHP运行环境
- 共享文件时提示“将安全性信息应用到以下对象时发生错误”
- cxf + spring + maven 开发webservice
- CDH5.4.0安装时遇到的问题
- 遇到问题----java----Comparison method violates its general contract异常
- Android 开发之软件的国际化
- codeforces 535D. Tavas and Malekas----#299div2D
- 数据库设置max_allowed_packet过小报错
- [Shell学习笔记] 创建任意大小的文件And分割任意大小的文件
- Linux下的Mysql,导入执行sql文件命令
- linux IIC子系统分析(三)——I2c子系统初始化顺序分析
- iptables规则的查看、添加、删除和修改
- Scrapy入门程序点评
- 数据库连接失败
- 遇到问题----java----Comparison method violates its general contract异常
- 构建之法阅读笔记三
- Hibernate Validator
- 高德地图判断地址输入是否正确
- mount永久挂载一目录
- 内网和外网之间的通信