Simple CUDA Thrust Program Error

六月ゝ 毕业季﹏ 提交于 2019-11-29 17:53:07
Robert Crovella

A few suggestions with Thrust:

  • If you are compiling your code with -G and having trouble, try compiling without -G
  • You can catch the errors that thrust throws, to get more information.
  • It's always recommended to compile your code for the architecture of the GPU you are using. So if you are on a cc2.0 GPU, compile with -arch=sm_20. If you are on a cc3.0 GPU, compile with -arch=sm_30 etc.
  • Finally, it's recommended to build a 64-bit project. On windows you would select a release/x64 project.
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!