Caffe编译的时候出现warning: The 'compute_20' and 'sm_20' architectures are deprecated怎么办
2016-12-30 09:45
429 查看
至于为什么会出现这种警告,如下网站回答的较好.
http://stackoverflow.com/questions/15714360/compiling-cuda-program-for-a-geforce-310-compute-capability-1-2-with-unmatched
我的解决办法简单粗暴,在makefile.config 文件中 删除相关的行.即可
搜索中文页面没有直接回答这个问题的,就写了一篇博客,希望可以帮到后人.
删除前
删除后
这样在编译的时候就没有警告了.
http://stackoverflow.com/questions/15714360/compiling-cuda-program-for-a-geforce-310-compute-capability-1-2-with-unmatched
我的解决办法简单粗暴,在makefile.config 文件中 删除相关的行.即可
搜索中文页面没有直接回答这个问题的,就写了一篇博客,希望可以帮到后人.
删除前
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_50,code=compute_50
删除后
CUDA_ARCH := -gencode arch=compute_30,code=sm_30 \ -gencode arch=compute_35,code=sm_35 \ -gencode arch=compute_50,code=sm_50 \ -gencode arch=compute_50,code=compute_50
这样在编译的时候就没有警告了.
相关文章推荐
- cuda8.0使用nvcc编译程序出现warning:The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated的解决办法
- 为什么出现:warning: The 'compute_10' and 'sm_10' architectures are deprecated
- 解决类似nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated....等问题
- 解决nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated问题
- nvcc warning : The ‘compute_20’, ‘sm_20’, and ‘sm_21’ architectures are deprecated, and may be remov
- Ubuntu16:cmake生成Makefile编译caffe过程(OpenBLAS/CPU+GPU)塈解决nvcc warning:The 'compute_20', 'sm_20'
- Ubuntu16:cmake生成Makefile编译caffe过程(OpenBLAS/CPU+GPU)塈解决nvcc warning:The 'compute_20', 'sm_20'
- Android studio更新后出现警告:Warning:The `android.dexOptions.incremental` property is deprecated and it has
- Android studio更新后出现警告:Warning:The `android.dexOptions.incremental` property is deprecated and it has
- VS2010 编译时老出现“Failed to load and parse the manifest”怎么解决?
- 出现 Assigning the return value of new by reference is deprecated in xxxx &&“Warning: Call-time pass-by-reference has been deprecated”怎么办?
- Android studio更新后出现警告:Warning:The `android.dexOptions.incremental` property is deprecated and it has
- 一切编译都是通过的,但是判断的时候输出的都是“The words are not anagram”
- win10+VS2013编译caffe的common.cpp错误error C4996: ‘getpid': The POSIX name for this item is deprecated.
- Warning:The `android.dexOptions.incremental` property is deprecated and it has no effect on the buil
- Warning:The `android.dexOptions.incremental` property is deprecated and it has no effect on the buil
- 怎么统计android编译时候的warning警告的个数及种类
- tomcat添加项目(Add and Remove...)出现There are no resources that can be added or removed from the server
- 迁移zencart后出现 WARNING: An Error occurred, please refresh the page and try again的解决方法
- VS2008使用QT插件编译的时候出现WARNING: Can't find the Qt version that's associated with this project