Unsupported gpu architecture 'compute_*'2017解决方法
2017-02-12 23:13
423 查看
今天在ubuntu service 14.04 下搭建 OpenCL +OpenCV 环境, 前期安装了 CUDA7.5 ,再安装caffe,出现了上述异常。
异常原因;
makefile.config中有cuda版本限制,设置的参数有可能cuda不支持。
如下:
# For CUDA < 6.0, comment the *_50 through *_61 lines for compatibility.
# For CUDA < 8.0, comment the *_60 and *_61 lines for compatibility.
CUDA_ARCH := -gencode arch=compute_20,code=sm_20 \
-gencode arch=compute_20,code=sm_21 \
-gencode arch=compute_30,code=sm_30 \
-gencode arch=compute_35,code=sm_35 \
-gencode arch=compute_50,code=sm_50 \
-gencode arch=compute_52,code=sm_52 \
# -gencode arch=compute_60,code=sm_60
# -gencode arch=compute_61,code=sm_61 \
# -gencode arch=compute_61,code=compute_61
解决方法:
看上面红色的备注,把 -gencode arch=compute_60,code=sm_60及以后的注释掉就可以了。
异常原因;
makefile.config中有cuda版本限制,设置的参数有可能cuda不支持。
如下:
# For CUDA < 6.0, comment the *_50 through *_61 lines for compatibility.
# For CUDA < 8.0, comment the *_60 and *_61 lines for compatibility.
CUDA_ARCH := -gencode arch=compute_20,code=sm_20 \
-gencode arch=compute_20,code=sm_21 \
-gencode arch=compute_30,code=sm_30 \
-gencode arch=compute_35,code=sm_35 \
-gencode arch=compute_50,code=sm_50 \
-gencode arch=compute_52,code=sm_52 \
# -gencode arch=compute_60,code=sm_60
# -gencode arch=compute_61,code=sm_61 \
# -gencode arch=compute_61,code=compute_61
解决方法:
看上面红色的备注,把 -gencode arch=compute_60,code=sm_60及以后的注释掉就可以了。
相关文章推荐
- Unsupported gpu architecture 'compute_11'解决方法
- OpenCV安装教程及错误:Unsupported gpu architecture 'compute_11' 解决方法
- Unsupported gpu architecture 'compute_11'解决方法
- Unsupported gpu architecture 'compute_11'解决方法
- Unsupported gpu architecture 'compute_11'解决方法
- Unsupported gpu architecture 'compute_11'解决方法
- Unsupported gpu architecture 'compute_11'解决方法
- [Caffe] - No.1 nvcc fatal : Unsupported gpu architecture 'compute_20'
- vs2015+opencv3.3.0+cuda9.1编译,出现nvcc fatal : Unsupported gpu architecture 'compute_20'
- nvcc fatal : Unsupported gpu architecture 'compute_11'
- 【matconvnet】故障排除:Error using mex nvcc fatal : Unsupported gpu architecture 'compute_52'
- ubuntu14.04编译opencv-2.4.9出现“nvcc fatal : Unsupported gpu architecture 'compute_11'”错误
- Caffe-GPU编译问题:nvcc fatal : Unsupported gpu architecture 'compute_20'
- 【matconvnet】故障排除:Error using mex nvcc fatal : Unsupported gpu architecture 'compute_52'
- unsupported major.minor version 解决方法
- duplicate symbol _OBJC_IVAR_$_CDataScanner.data ......... for architecture i386此错误解决方法
- "ld: symbol(s) not found for architecture i386"错误解决方法
- vim7.3编译报错error: cannot compute sizeof (off_t)解决方法
- Java中Could not find the main class.program will exit和java.lang.UnsupportedClassVersionError 的解决方法 .
- eclipse 中 unsupported major.minor version 解决方法