nvcc warning in cuda 8.0

后端 未结 1 1092
故里飘歌
故里飘歌 2021-02-10 03:55

I am getting this warning when I try to execute nvcc.

I have cuda toolket 8.0 I have Nvidia GTX 480 in my system.

nvcc warning : The \'compute_20\', \'sm         


        
1条回答
  •  被撕碎了的回忆
    2021-02-10 04:14

    This is the CUDA development teams (i.e. NVIDIA) way of letting CUDA developers (i.e. you) know that compute capability (cc) 2.x devices won't be supported for much longer.

    It's reasonable to assume that the next major CUDA release will drop support for compute capability 2.x devices, including your GTX 480. Therefore, CUDA 8.0 is likely the last CUDA toolkit that will support that device.

    The warning occurs even if no target architecture is specified, because the default target architecture for CUDA 8 is cc 2.0.

    If you only intend to target devices of cc3.0 or higher, you can eliminate the warning from your compile output by specifying an appropriate architecture to match your devices, e.g.

    nvcc -arch=sm_30 ...
    

    for example to target cc 3.0 and higher devices. As the warning message itself indicates, you can also specify a command line switch to suppress the warning.

    Something similar happened in the CUDA 6.x timeframe when support for cc 1.x devices was deprecated. Support was dropped in CUDA 7.0.

    0 讨论(0)
提交回复
热议问题