How to set CUDA compiler flags in Visual Studio 2010?

后端 未结 3 1335
后悔当初
后悔当初 2020-11-30 13:17

After persistently getting error : identifier \"atomicAdd\" is undefined, I\'ve found the solution to be to compile with -arch sm_20 flag. But how

3条回答
  •  佛祖请我去吃肉
    2020-11-30 13:55

    Go to the "Device" section under "CUDA C/C++". There, within "Code Generation" you can specify your sm_20. No need for the -arch.

提交回复
热议问题