且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在Windows上使用其他具有CUDA的c ++编译器?

更新时间:2023-11-10 17:58:28

CUDA Windows工具链需要 Visual Studio C ++编译器。您不能使用该平台上的任何其他内容。如果VS编译器不支持您在CUDA主机代码中需要的语言功能,您别无选择,只能更改平台或您的期望。

The CUDA windows toolchain requires the Visual Studio C++ compiler. You cannot use anything else on that platform. If the VS compiler doesn't support the language features you need within CUDA host code, you have no choice but to change platforms, or your expectations.

您仍然可以使用另一个编译器编译非CUDA主机代码,然后使用NVCC和VS工具链链接该代码。

You can still potentially compile non-CUDA host code using another compiler and then link that code using NVCC and the VS toolchain.