vs2015+opencv3.3.0+cuda9.1编译,出现nvcc fatal : Unsupported gpu architecture 'compute_20'
2018-01-17 09:24
706 查看
话不多说,进入正题:
一、vs2015+opencv3.3.0+cuda9.1编译OpenCV时,在配置cmake阶段出现:
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
CUDA_nppi_LIBRARY (ADVANCED)
问题原因:cuda版本的问题,在9.1中原有的nppi被分解为多个库,查看cuda的bin文件夹发现多了以下等名称的以[b]nppi为前缀的dll文件。
![](http://images2017.cnblogs.com/blog/316162/201801/316162-20180117091144224-1664350298.png)
[/b]
解决办法:
1、更换cuda版本8.0及以下;
2、参照http://blog.csdn.net/u014613745/article/details/78310916这篇文章的解决办法,写的非常详细。
二、vs编译代码阶段出现,nvcc fatal : Unsupported gpu architecture 'compute_20'错误,导致编译失败
问题原因:在cmake配置阶段,配置了当前版本cuda不支持的计算架构2.0
![](http://images2017.cnblogs.com/blog/316162/201801/316162-20180117091711803-281207036.png)
解决办法:删除途中对应选项中的2.0,重新configure、generate、编译即可!
一、vs2015+opencv3.3.0+cuda9.1编译OpenCV时,在配置cmake阶段出现:
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
CUDA_nppi_LIBRARY (ADVANCED)
问题原因:cuda版本的问题,在9.1中原有的nppi被分解为多个库,查看cuda的bin文件夹发现多了以下等名称的以[b]nppi为前缀的dll文件。
![](http://images2017.cnblogs.com/blog/316162/201801/316162-20180117091144224-1664350298.png)
[/b]
解决办法:
1、更换cuda版本8.0及以下;
2、参照http://blog.csdn.net/u014613745/article/details/78310916这篇文章的解决办法,写的非常详细。
二、vs编译代码阶段出现,nvcc fatal : Unsupported gpu architecture 'compute_20'错误,导致编译失败
问题原因:在cmake配置阶段,配置了当前版本cuda不支持的计算架构2.0
![](http://images2017.cnblogs.com/blog/316162/201801/316162-20180117091711803-281207036.png)
解决办法:删除途中对应选项中的2.0,重新configure、generate、编译即可!
相关文章推荐
- ubuntu14.04编译opencv-2.4.9出现“nvcc fatal : Unsupported gpu architecture 'compute_11'”错误
- Caffe-GPU编译问题:nvcc fatal : Unsupported gpu architecture 'compute_20'
- OpenCV安装教程及错误:Unsupported gpu architecture 'compute_11' 解决方法
- nvcc fatal : Unsupported gpu architecture 'compute_11'
- [Caffe] - No.1 nvcc fatal : Unsupported gpu architecture 'compute_20'
- Unsupported gpu architecture 'compute_11'解决方法
- Unsupported gpu architecture 'compute_11'解决方法
- Unsupported gpu architecture 'compute_11'解决方法
- cuda环境下安装opencv出现nvcc warning : The 'compute_11'
- cuda环境下安装opencv出现nvcc warning : The 'compute_11'
- cuda8.0使用nvcc编译程序出现warning:The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated的解决办法
- 英伟达 - GPU - CUDA并行计算架构 (Compute Unified Device Architecture, 统一计算设备架构)
- 【matconvnet】故障排除:Error using mex nvcc fatal : Unsupported gpu architecture 'compute_52'
- Unsupported gpu architecture 'compute_*'2017解决方法
- Unsupported gpu architecture 'compute_11'解决方法
- Unsupported gpu architecture 'compute_11'解决方法
- cuda环境下安装opencv出现nvcc warning : The 'compute_11'
- Unsupported gpu architecture 'compute_11'解决方法
- 关于nvcc fatal : Value 'sm_20' is not defined for option 'gpu-architecture'的问题
- 【matconvnet】故障排除:Error using mex nvcc fatal : Unsupported gpu architecture 'compute_52'