尝试构建a Windows port of Faster-RCNN时出现nvcc fatal : '--ptxas-options=-v': expected a number错误。您可以直接从here访问设置文件(这是一个Python脚本)。
软件环境:
- CUDA v10.1
- VS 2019
- Python 3.7
- Windows 10发布于 2019-06-09 22:07:37
此配置行在CUDA 10.1中不再正确:
nvcc_compile_args = ['-O', '--ptxas-options=-v', '-arch=sm_35', '-c', '--compiler-options=-fPIC']这将生成一个nvcc编译命令,如下所示:
nvcc -O ...在CUDA 10.0和更早版本中,这样的命令是合法的。而对于CUDA 10.1,情况并非如此。这个开关通过了主机代码的优化级别,所以除非有任何理由不这样做,否则我建议在这里传递-O3:
nvcc_compile_args = ['-O3', '--ptxas-options=-v', '-arch=sm_35', '-c', '--compiler-options=-fPIC']相关文档链接为here
https://stackoverflow.com/questions/56513796
复制相似问题