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

后端 未结 5 2048
一生所求
一生所求 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:19

    Following the previous comments I've installed Studio Express & VS2010. This did not solve the "cl.exe not in path" problem.

    I solved the problem with the error Cannot find compiler cl.exe in path, by including c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64 in PATH, before installing Windows SDK.

    This question also contains valuable information.
    For some reason VS2010 & Studio Express failed to set the proper variables in path even after the execution of vsvars32.bat.

    Thank you all for your valuable help.

提交回复
热议问题