消除NVCC警告

在这里 -DCUDA_NVCC_FLAGS=--Wno-deprecated-gpu-targets用于指定CUDA编译器(nvcc)的编译选项,如果不指定--Wno-deprecated-gpu-targets选项则在编译Caffe时会产生如下编译警告

nvcc warning : The ‘compute_20’, ‘sm_20’, and ‘sm_21’ architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).

当然也可以在cmake-gui中,如下图搜索NVCC,在CUDA_NVCC_FLAGS中添加--Wno-deprecated-gpu-targets
nvcc warning : The ‘compute_20’, ‘sm_20’, and ‘sm_21’

执行cmake -DBLAS=Open -DCUDA_NVCC_FLAGS=--Wno-deprecated-gpu-targets ..


转自 http://www.zhimengzhe.com/bianchengjiaocheng/qitabiancheng/243889.html

相关文章:

  • 2021-04-15
  • 2021-07-31
  • 2021-09-15
  • 2021-10-29
  • 2022-12-23
  • 2022-12-23
  • 2021-09-25
  • 2021-07-15
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-10
  • 2022-02-22
相关资源
相似解决方案