参考https://github.com/ApolloAuto/apollo/issues/13254
cd third_party/gpus/crosstool/clang/bin/
vim crosstool_wrapper_driver_is_not_gcc.tpl
在vim常规模式下在键盘上输入/arch,然后enter
就能看到如下图所示的画面(大概在224行左右),将其改成目前支持的架构,如下图所示
查看目前支持哪些架构的命令
nvcc --list-gpu-arch
结果如下图所示:
compute_35
compute_37
compute_50
compute_52
compute_53
compute_60
compute_61
compute_62
compute_70
compute_72
compute_75
compute_80
compute_86