This error occurs because nvcc do not find Cl.exe. It is need to pass the path to this compiler by param --compiler-bindir. For example:
nvcc mykernel.cu --cubin --compiler-bindir="c:\program files\Microsoft Visual Studio 9.0\VC\bin"
But when I make above, I have other two errors:
Error 1 =Ñ… єфрхЄё юЄъÐvЄ№ Їрщы шёЄюўÑшъ: mykernel.cu: No such file or directory C:\Users\alvahtin\Documents\Visual Studio 2008\Projects\TestCuda\TestCuda\c1xx TestCuda
Error 2 The command "nvcc mykernel.cu --cubin --compiler-bindir="C:\Program Files\Microsoft Visual Studio 9.0\VC\bin"" exited with code 2. TestCuda
What is the file “c1xx”? What can I do to eliminate these errors?
I have found cause of my errors. It is need specify the full path to the compiled file. Command line for building event “after building” must be
nvcc "C:\Users\alvahtin\Documents\Visual Studio 2008\Projects\Cuda\Cuda\mykernel.cu" --cubin --compiler-bindir="C:\Program Files\Microsoft Visual Studio 9.0\VC\bin
Is it possible to register these paths in the system to always do not write them on the command line?