. Advertisement .
..3..
. Advertisement .
..4..
As advised, I used some code samples in another forum, but it could not improve the problem. My question is the “nvcc fatal : cannot find compiler ‘cl.exe’ in path” in programs – how to solve it? The command line is:
nvcc test.cu
and the result:
*** Start Block ***
nvcc fatal : Cannot find compiler 'cl.exe' in PATH
What does the message mean? Can you advise me to fix it? If you have other better answers, leave them in the answer box below.
The cause:
The compiler of Microsoft’s C/C++ is
cl.exe
. You haven’t installed it somewhere that the command line can locate it, this is the problem.Solution:
To solve this problem, you have to make sure that the folder including the “cl.exe” file is added into the path of environment variable. You can do as the following suggestion:
Another way is following these steps: access to My Computer -> Properties -> Advanced System Settings -> Environment Variables.
Find “PATH” in the list and add the previously mentioned path there (or even if whatever is the position of your cl.exe).
Visual Studio
cl.exe
for new Visual Studio is available in path =>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\bin\Hostx64\x64
x64 is for 64bit
32bit is supported by x86