Does CUDA 5 support STL or THRUST inside the device code?

我是研究僧i 提交于 2020-01-04 14:11:09

问题


Its mentioned that CUDA 5 allows library calls from kernel Does that mean CUDA 5 can use thrust or STL inside device code then ?


回答1:


CUDA 5 has a device code linker for the first time. It means you can have separate object files of device functions and link against them rather than having to declare them at compilation unit scope. It also adds the ability for kernels to call other kernels (but only on compute 3.5 Kepler devices).

None of this means that C++ standard library templates or Thrust can be used inside kernel code.



来源:https://stackoverflow.com/questions/15052295/does-cuda-5-support-stl-or-thrust-inside-the-device-code

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!