Hi,
I try to compile a software but I got the following errors :
Error 1 fatal error C1083: Cannot open include file: ‘cutil.h’: No such file or directory
Error 2 error: A tool returned an error code from “Invoking CUDA compiler”
I have installed the CUDA 3.1 toolkit and SDK.
I have the following environment variables :
CUDA_BIN_PATH=C:\CUDA\bin
CUDA_INC_PATH=C:\CUDA\include
CUDA_LIB_PATH=C:\CUDA\lib
NVSDKCOMPUTE_ROOT=C:\Program Files\NVIDIA Corporation\NVIDIA GPU Computing SDK
If someone has an idea of the problem ?
Thanks
Here is my command line, we clearly see that the following line :
-I"C:\Program Files\NVIDIA Corporation\NVIDIA GPU Computing SDK\C\common\inc"
include the right folder ! So what can be the problem !!!
echo “C:\CUDA\bin\nvcc.exe” -ccbin “C:\Program Files\Microsoft Visual Studio 9.0\VC\bin” -D_DEBUG -D_WIN32 -I"C:\CUDA\include" -I"./" -I"…/…/common/inc" -I"…/…/…/shared/inc" -I"C:\CUDA\include" -I"C:\Program Files\NVIDIA Corporation\NVIDIA GPU Computing SDK\C\common\inc" -Xcompiler “/EHsc /W3 /nologo /O2 /Zi /RTC1 /MTd " -maxrregcount=32 -gencode=arch=compute_10,code="sm_10,compute_10" -gencode=arch=compute_20,code="sm_20,compute_20" --compile -o “Debug\Brigade.cu.obj” “d:\Temp\brigade_july6th\Brigade.vcproj”
“C:\CUDA\bin\nvcc.exe” -gencode=arch=compute_10,code="sm_10,compute_10" -gencode=arch=compute_20,code="sm_20,compute_20" -ccbin “C:\Program Files\Microsoft Visual Studio 9.0\VC\bin” -D_DEBUG -D_WIN32 -I"C:\CUDA\include” -I"./" -I"…/…/common/inc" -I"…/…/…/shared/inc" -I"C:\CUDA\include" -I"C:\Program Files\NVIDIA Corporation\NVIDIA GPU Computing SDK\C\common\inc" -Xcompiler “/EHsc /W3 /nologo /O2 /Zi /RTC1 /MTd " -I"C:\CUDA\include” -I"C:\Program Files\NVIDIA Corporation\NVIDIA GPU Computing SDK\C\common\inc" -maxrregcount=32 -gencode=arch=compute_10,code="sm_10,compute_10" -gencode=arch=compute_20,code="sm_20,compute_20" --compile -o “Debug\Brigade.cu.obj” “d:\Temp\brigade_july6th\Brigade.vcproj”
herx
July 23, 2010, 4:16pm
3
Hi,
I try to compile a software but I got the following errors :
Error 1 fatal error C1083: Cannot open include file: ‘cutil.h’: No such file or directory
Error 2 error: A tool returned an error code from “Invoking CUDA compiler”
I have not had any success compiling code outside the examples directory in the SDK. I suggest copying one of the example directories, making sure it compiles, and then substituting your code for the example code.