开发者

CUDA compiler or emulator for windows

开发者 https://www.devze.com 2023-02-20 17:33 出处:网络
Is there any compiler or emulator for CUDA on Windows? I heard there is an emulator which can be installed in Visual St开发者_开发百科udio, but I want something rather than Visual Studio.

Is there any compiler or emulator for CUDA on Windows?

I heard there is an emulator which can be installed in Visual St开发者_开发百科udio, but I want something rather than Visual Studio.

Please tell me if there is any solution for testing CUDA code on Windows.


The NVCC (NVIDIA CUDA Compiler) ships with the CUDA Toolkit for Windows. There used to be an emulation mode, but it has been discarded starting from CUDA 3.0. There are open-source projects which offer some kind of emulation.

NVIDIA also provides the Parallel NSight tool, which enables GUI debugging of CUDA code within Visual Studio.

Also, you can compile CUDA from the command-line, if that is a Visual Studio alternative that suits you. To compile from the command-line, first open the Visual Studio Command Prompt, and then type:

nvcc -arch=sm_12 YourCudaFile.cu

The -arch option is used to specify the CUDA architecture. sm_12 for example indicates an architecture with Compute Capability of 1.2.

0

精彩评论

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