"CUT_DEVICE_INIT" is undefined

- Operating System
Debian GNU/Linux Lenny

- Synopsis description of the problem
“CUT_DEVICE_INIT” is undefined

- Detailed description of the problem
I can not compile SDK, errors are the following:

src/cutil.cpp:176: error: ‘CUTBoolean’ does not name a type
src/cutil.cpp:262: error: expected constructor, destructor, or type conversion before ‘loadPGMt’
src/cutil.cpp:296: error: ‘CUTBoolean’ does not name a type
src/cutil.cpp:351: error: expected constructor, destructor, or type conversion before ‘savePGMt’
src/cutil.cpp:378: error: expected constructor, destructor, or type conversion before ‘savePPMt’
src/cutil.cpp:404: error: expected constructor, destructor, or type conversion before ‘compareData’
src/cutil.cpp:452: error: expected constructor, destructor, or type conversion before ‘compareDataAsFloat’
src/cutil.cpp:492: error: expected constructor, destructor, or type conversion before ‘compareDataAsFloatThreshold’
src/cutil.cpp:541: error: expected constructor, destructor, or type conversion before ‘cutReadFile’
src/cutil.cpp:618: error: expected constructor, destructor, or type conversion before ‘cutWriteFile’
src/cutil.cpp:665: error: expected initializer before ‘cutFree’
src/cutil.cpp:678: error: expected initializer before ‘cutFindFilePath’
make[1]: *** [obj/release/cutil.cpp.o] Error 1
make[1]: Leaving directory `/home/luca/NVIDIA_CUDA_SDK/common’
make: *** [lib/libcutil.so] Error 2

and when adding strings like: CUT_DEVICE_INIT to my programs, I get the following error:

error: identifier “CUT_DEVICE_INIT” is undefined

[b]

  • CUDA toolkit release version[/b]
    cudatoolkit_2.2_linux_64_ubuntu8.10
    (but I have tried also: cudatoolkit_2.1_linux64_ubuntu7.10)
    [b]
  • SDK release version[/b]
    cudasdk_2.2_linux

- Compiler for CPU host code
gcc version 4.3.2 (Debian 4.3.2-1.1)

- System description including:
CPU type: Intel® Core™ i7 CPU 920 @ 2.67GHz
CPU speed: 2.67GHz
installed system RAM: 6 Gb
system type and model: Linux watson 2.6.26-2-amd64
video cards installed in the system, chipset type: nVidia GTX295

Any idea?

Thank you!

What command are you running when you see this failure?

Note that Debian is not a supported Linux distribution.

Do not use cutil ever. cutil should not be used by anyone and is not part of the actual CUDA distribution–it is a helper package that is not production quality.

Hi!

As for the first one:

[i]make[1]: *** [obj/release/cutil.cpp.o] Error 1

make[1]: Leaving directory `/home/luca/NVIDIA_CUDA_SDK/common’

make: *** [lib/libcutil.so] Error 2[/i]

Just:

[codebox]cd /home/luca/NVIDIA_CUDA_SDK/ && make[/codebox]

As for the second one:

identifier “CUT_DEVICE_INIT” is undefined

Just:

[codebox]nvcc -o fifth_debug fifth_debug.cu[/codebox]

Yes, I know, but except for these problems, I am able to run a lot of CUDA software… Do you think problem is cutil.h/Debian?

Thank you very much!

Hi!

Ah… :rolleyes:

So, a question, functions like: CUT_DEVICE_INIT(…) or CUDA_SAFE_CALL(…) were are defined?

Thank you very much!

Please consider following your own advice then and remove it from the SDK.