Compile CUDA without Visual Studio - “Cannot find compiler cl.exe in path”

后端 未结 5 2047
一生所求
一生所求 2021-02-06 00:44

I\'ve just begun a small project in CUDA.

I need to know the following: Is it possible to compile CUDA code without using/buying Microsoft Visual Studio? Using Nvcc.exe

5条回答
  •  名媛妹妹
    2021-02-06 01:17

    You have to figure out where NVIDIA GPU Computing Toolkit is installed. In my system it's in "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.0\bin\nvcc.exe" Then

    1. "Edit Environment Variables" on Windows.
    2. Click on New...
    3. Variable name: NVCC Variable Value: C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.0\bin\nvcc.exe
    4. Click on OK.

提交回复
热议问题