I get an error when I try to use printf() in a kernel

后端 未结 3 1146
孤独总比滥情好
孤独总比滥情好 2021-01-25 00:47

I\'m using Visual Studio 2010 and a GTX480 with compute capability 2.0.

I have tried setting sm to 2.0, but when I attempt to use printf() in a kernel, I get:

3条回答
  •  梦毁少年i
    2021-01-25 01:08

    If you're getting that error, it probably means that your GPU does not have Compute capability 2.x or higher. This thread goes into more detail on what your options are for printing inside a kernel function.

提交回复
热议问题