Hi all,
I have a C source file in which I’m using CUBLAS functions (its name is main.c) , when I am trying to call a CUDA kernel from this file, it cannot be compiled and I get this error message: Cannot open include file: ‘cutil.h’: No such file or directory
All CUDA kernels are in a separate file called my_kernel.cu, If the setting for this file in the Configuration properties/Tool must be CUDA or Custom Build Tool??
I have copied crutil.h in the directory of these files, but nothing changed!
After setting the path it can find the cutil.h but during the Build Solution it gives 102 error which all of them are for the cutil.h, it seems that cutil.h is compiling with C compiler not with the cuda compiler, for your reference I have copied 2 of these errors below:
(I’m using windows XP64 )
1>C:\Program Files (x86)\NVIDIA Corporation\NVIDIA CUDA SDK\common\inc\cutil.h(122) : error C2143: syntax error : missing ‘{’ before ‘__cdecl’
1>C:\Program Files (x86)\NVIDIA Corporation\NVIDIA CUDA SDK\common\inc\cutil.h(124) : error C2146: syntax error : missing ‘)’ before identifier ‘verbose’
Hello. I was wondering if this problem was resolve. We are having the same problem with the CUDA kit 3.2 November release. The installation is missing common directory. I filled in the file from another installation, but now ‘cutil32D.lib’ is missing. Is this an installer error ?