Unsupported gpu architecture 'compute_11'解决方法
来源:互联网 发布:机器人编程用什么语言 编辑:程序博客网 时间:2024/05/21 03:26
环境背景:
由于项目需要,在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_generated_matrix_operations.cu.omake[2]: ***[modules/core/CMakeFiles/cuda_compile.dir/__/dynamicuda/src/cuda/./cuda_compile_generated_matrix_operations.cu.o] Error 1make[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'解决方法
- Unsupported gpu architecture 'compute_11'解决方法
- Unsupported gpu architecture 'compute_11'解决方法
- Unsupported gpu architecture 'compute_11'解决方法
- OpenCV安装教程及错误:Unsupported gpu architecture 'compute_11' 解决方法
- nvcc fatal : Unsupported gpu architecture 'compute_11'
- ubuntu14.04编译opencv-2.4.9出现“nvcc fatal : Unsupported gpu architecture 'compute_11'”错误
- Unsupported gpu architecture 'compute_*'2017解决方法
- Caffe-GPU编译问题:nvcc fatal : Unsupported gpu architecture 'compute_20'
- 【matconvnet】故障排除:Error using mex nvcc fatal : Unsupported gpu architecture 'compute_52'
- 【matconvnet】故障排除:Error using mex nvcc fatal : Unsupported gpu architecture 'compute_52'
- Nvidia GPU architecture笔试
- 深入理解GPU Architecture
- 解决Unsupported Architecture. Your executable contains unsupported architecture '[x86_64, i386]
- 深入理解GPU Architecture(上)
- unsupported data conversion 解决方法
- 如何解决Unsupported Architecture. Your executable contains unsupported architecture '[x86_64, i386]
- GPU performance tune on tile-based architecture
- [BZOJ1146]CTSC2008网络管理|树上带修改K大
- Word Break
- next_permutation函数//字典序
- CGColorRef & CGGradientRef
- FZU 2196 Escape (两次BFS啊)
- Unsupported gpu architecture 'compute_11'解决方法
- 用cocos-2d x 开发wp应用
- Oracle SQL快速复制表结构或数据
- JSP页面的一些效果
- 制作题库时随机抽题
- 工厂模式
- Sturts-页面传值到action注意
- 模拟实现FIFO,LRU,OPT内存淘汰策略
- 进程间通讯方式以及各个方式的优缺点