关于nvcc fatal : Value 'sm_20' is not defined for option 'gpu-architecture'的问题
2018-01-03 21:41
573 查看
关于nvcc fatal : Value ‘sm_20’ is not defined for option ‘gpu-architecture’的问题
先说明配置Ubuntu16.04 + CUDA9.0,GeForce 820M我是在运行CUDA代码的过程中遇到的这个问题,采用nvcc编译时报错nvcc fatal : Value ‘sm_20’ is not defined for option ‘gpu-architecture’
命令是nvcc -arch sm_20 xx.cu -o xx (xx为文件名)
-arch sm_20是用来指定编译器使用Fermi架构产生device代码,跟编译器有关,改用sm_60后编译通过。
相关文章推荐
- 安装NCCL问题:nvcc fatal : Value 'gnu++0x' is not defined for option 'std'
- 实用程序软件包(关于使用静态函数报错问题“Static function declared but not defined in C+++ "eh.h is only for C++!"报错问题)
- 关于问题ld:library not found for -lXXX 和ld:warning:directory not found option 以及duplicate symbol的解决办法
- "this class is not key value coding-compliant for the key ..."问题的解决
- 关于报错ld: symbol(s) not found for architecture x86_64不是代码问题
- setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key delete.的问题
- 关于出现this class is not key value coding-compliant for the key的错误
- "this class is not key value coding-compliant for the key ..."问题的解决(转)
- iOS - xib死活连不上代码问题/[<NSObject 0x1702023e0> setValue:forUndefinedKey:]: this class is not key
- 如何解决问题“This Class is not Key Value Coding-Compliant for the Key”
- 关于 this class is not key value coding-compliant for the key 的解决
- 关于问题ld:library not found for -lXXX 和ld:warning:directory not found option 以及duplicate symbol的解决办法
- 关于hadoop中The method XXXX is not applicable for the arguments问题的解决
- "this class is not key value coding-compliant for the key ..."问题的解决
- 关于Scope 'session' is not active for the current thread的问题
- Caffe-GPU编译问题:nvcc fatal : Unsupported gpu architecture 'compute_20'
- "this class is not key value coding-compliant for the key ..."问题的解决
- this class is not key value coding-compliant for the key imageView的崩溃问题
- "this class is not key value coding-compliant for the key ..."问题的解决
- DSO激活问题:Transfer structure prefix for source system T90CLNT090 is not defined