Visual Studio - filter nvcc warnings away

后端 未结 1 1746
北海茫月
北海茫月 2021-01-26 07:29

I\'m writing a CUDA program but I\'m getting the obnoxious warning:

Warning: Cannot tell what pointer points to, assuming global memory space

t

相关标签:
1条回答
  • 2021-01-26 08:19

    I had the same annoying warnings, I found help on this thread: link.

    You can either remove the -G flag on the nvcc command line,

    or

    change the compute_10,sm_10 to compute_20,sm_20 in the Cuda C/C++ options of your project if you're using Visual Studio.

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