CUDA can't find crtdefs.h
SOLVED! I had installed CUDA x64, but here at work we only had VS for x86, so I uninstalled CUDA and installed the x86 version. Everything ok now.

Hi.

I'm trying to compile an example from the lecture: [url="http://heim.ifi.uio.no/~knutm/geilo2008/seland.pdf"]http://heim.ifi.uio.no/~knutm/geilo2008/seland.pdf[/url]
The example is on page 21.

When I do this, from the cmd using: nvcc testfile.cu, I get the error:

c:\cuda\include\host_config(115): fatal error C1083: Cannot open include file 'crtdefs.h': No such file or directory

The file itself is in:

C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include

Can anyone please help? Thank you.
SOLVED! I had installed CUDA x64, but here at work we only had VS for x86, so I uninstalled CUDA and installed the x86 version. Everything ok now.



Hi.



I'm trying to compile an example from the lecture: http://heim.ifi.uio.no/~knutm/geilo2008/seland.pdf

The example is on page 21.



When I do this, from the cmd using: nvcc testfile.cu, I get the error:



c:\cuda\include\host_config(115): fatal error C1083: Cannot open include file 'crtdefs.h': No such file or directory



The file itself is in:



C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include



Can anyone please help? Thank you.

#1
Posted 06/16/2009 11:13 AM   
[quote name='martiert' post='553180' date='Jun 16 2009, 06:13 AM']SOLVED! I had installed CUDA x64, but here at work we only had VS for x86, so I uninstalled CUDA and installed the x86 version. Everything ok now.

Hi.

I'm trying to compile an example from the lecture: [url="http://heim.ifi.uio.no/~knutm/geilo2008/seland.pdf"]http://heim.ifi.uio.no/~knutm/geilo2008/seland.pdf[/url]
The example is on page 21.

When I do this, from the cmd using: nvcc testfile.cu, I get the error:

c:\cuda\include\host_config(115): fatal error C1083: Cannot open include file 'crtdefs.h': No such file or directory

The file itself is in:

C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include

Can anyone please help? Thank you.[/quote]

I am also facing the same error. I have MS VS/VC++ installed and path included in the bash script.
I will appreciate any help to resolve this error. I am working on 64-bit Win 7.

Thanks
Shadab
[quote name='martiert' post='553180' date='Jun 16 2009, 06:13 AM']SOLVED! I had installed CUDA x64, but here at work we only had VS for x86, so I uninstalled CUDA and installed the x86 version. Everything ok now.



Hi.



I'm trying to compile an example from the lecture: http://heim.ifi.uio.no/~knutm/geilo2008/seland.pdf

The example is on page 21.



When I do this, from the cmd using: nvcc testfile.cu, I get the error:



c:\cuda\include\host_config(115): fatal error C1083: Cannot open include file 'crtdefs.h': No such file or directory



The file itself is in:



C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include



Can anyone please help? Thank you.



I am also facing the same error. I have MS VS/VC++ installed and path included in the bash script.

I will appreciate any help to resolve this error. I am working on 64-bit Win 7.



Thanks

Shadab

#2
Posted 11/25/2009 07:46 PM   
[quote name='shadab' post='955651' date='Nov 25 2009, 11:46 AM']I am also facing the same error. I have MS VS/VC++ installed and path included in the bash script.
I will appreciate any help to resolve this error. I am working on 64-bit Win 7.

Thanks
Shadab[/quote]


I'm also facing the same issue. VSTS 2008 on a Vista64. Thanks.
[quote name='shadab' post='955651' date='Nov 25 2009, 11:46 AM']I am also facing the same error. I have MS VS/VC++ installed and path included in the bash script.

I will appreciate any help to resolve this error. I am working on 64-bit Win 7.



Thanks

Shadab





I'm also facing the same issue. VSTS 2008 on a Vista64. Thanks.

#3
Posted 12/10/2009 12:25 AM   
[quote name='jia.tse' post='962341' date='Dec 10 2009, 03:25 AM']I'm also facing the same issue. VSTS 2008 on a Vista64. Thanks.[/quote]
got also vista64, had 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_)
[quote name='jia.tse' post='962341' date='Dec 10 2009, 03:25 AM']I'm also facing the same issue. VSTS 2008 on a Vista64. Thanks.

got also vista64, had 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_)

#4
Posted 12/23/2009 10:47 AM   
Had the same problem and this resolved it for me.
Had the same problem and this resolved it for me.

#5
Posted 08/19/2010 08:45 AM   
Had the same problem and this resolved it for me.
Had the same problem and this resolved it for me.

#6
Posted 08/19/2010 08:45 AM   
sorry I know this is old but I want to know who to change the nvcc.profile, I know this may be very elementary but I don't know how to open the file and add the INCLUDES += "-I$(TOP)/include" "-I$(TOP)/include/cudart" "-IC:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include" $(_SPACE_)
thanks
sorry I know this is old but I want to know who to change the nvcc.profile, I know this may be very elementary but I don't know how to open the file and add the INCLUDES += "-I$(TOP)/include" "-I$(TOP)/include/cudart" "-IC:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include" $(_SPACE_)

thanks

#7
Posted 12/13/2011 05:07 PM   
Scroll To Top