The nvcc compiler included in CUDA 3.2 doesn’t support the cl.exe included in Visual Studio 2010.
My question is, cl.exe (VS 2010) it’s supported by nvcc in CUDA 4?
The original problem is that nvcc throws the error:
fatal error C1083: Cannot open include file ‘crtdefs.h’: No such file or directory
(Installed VS2008)
and a supposed solution it’s here: http://forums.nvidia.com/index.php?showtopic=99441
spicifically the solution is to to modify nvcc.profile this way:
INCLUDES += “-I$(TOP)/include” “-I$(TOP)/include/cudart” “-IC:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include” $(_SPACE_)
The problem it’s that the file ‘crtdefs.h’ doesn’t exists in C:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include or any other directory
Then, I installed VS2010, but occurs error mentioned at first. So I’m thiking install CUDA 4.
Thanks for all.