开发者

CUDA Project Structure

开发者 https://www.devze.com 2023-01-17 09:26 出处:网络
The template and cppIntegration examples in the CUDA SDK (version 3.1) use Externs to link function calls from the host code to the device code.

The template and cppIntegration examples in the CUDA SDK (version 3.1) use Externs to link function calls from the host code to the device code.

However, Tom'开发者_如何学JAVAs comment here indicates that the usage of extern is deprecated.

If this the case, what's the correct structure for a CUDA project such as the template example or cppIntegration example?


Depends what your host code is. If you end up mixing C and C++ you still need the externs. For details see this guide.

Update: the content from the above link has been moved [here] (https://isocpp.org/wiki/faq/mixing-c-and-cpp).

0

精彩评论

暂无评论...
验证码 换一张
取 消