call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsx86_amd64.bat"
"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\bin\nvcc.exe" -gencode=arch=compute_30,code=\"sm_30,compute_30\" --use-local-env --cl-version 2017 -ccbin "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\bin\Hostx64\x64\cl.exe" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\include" -I"C:\cub-1.7.4" -I"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include" --keep-dir "C:\Users\Marko\Source\Repos\The Spiral Language\Temporary\bin\Release" -maxrregcount=0 --machine 64 -ptx -cudart static -o "C:\Users\Marko\Source\Repos\The Spiral Language\Temporary\bin\Release\cuda_kernels.ptx" "C:\Users\Marko\Source\Repos\The Spiral Language\Temporary\bin\Release\cuda_kernels.cu"
A template similar to the above would have worked for me with Cuda 8.0, but it does not with the never version.
[vcvarsall.bat] Environment initialized for: 'x86_x64'
nvcc fatal : Cannot find compiler 'cl.exe' in PATH
I get the above error, but if you look at the ccbin
path, cl.exe
is exactly in that directory and NVCC
's error message barely makes sense to me.
In order to figure out what the problem is what I should be doing is taking a look at the VS 2017 Cuda template and adapt it from that, but I'd prefer not to have to deal with the 3.5Gb install just for this single thing.
What is the problem with the way I am handling NVCC
? It does find cl.exe
if I put it in the PATH
.
Edit: It is not a duplicate question because I am not asking how to add cl.exe
to PATH
. I am asking why NVCC itself is not accepting proper inputs. I only asked how to add to PATH
as a side-note in the comments. Also, in the bug report to NVidia, I am linking to this question directly so please do not close it down until the issue is resolved.