About nvcc in cuda 4

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.

Hello,

I can’t remember having seen this error before, but can have a look that the ‘include’ directories of my VS installations, maybe on monday or tuesday (I’m on a different computer at the moment).

So far, VS2008 worked with all CUDA versions for me (on Win32 and Win Vista 64).

It it not completely clear for me what your current configuration is: You tried CUDA 3.2 with VS2008 and 2010, and both did not work? I assume that CUDA 4.0 will not change very much there. But I thought that you already had a working configuration…?

bye

Effectively, but frankly I don’t remember what I did.

Anyway, NVCC included in Cuda Toolkit 4 it works using cl.exe in Visual Studio 2010.

Thanks a lot.