开发者

CUDA Project Structure

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜