linking to cuda SDK libraries in Fedora 11 Compiling examples

I’ve installed the Cuda SDK and Cuda driver for linux v. 2.3. I’m also running Fedora 11 which is perhaps not advisable but out of my hands. I get the following error when I try to make from the CUDA_SDK/C directory:

make[1]: Entering directory /home/lamberh/NVIDIA_GPU_Computing_SDK/C/src/threadFenceReduction' threadFenceReduction.cu:52:26: error: cutil_inline.h: No such file or directory make[1]: *** [obj/release/threadFenceReduction.cu_sm_11.o] Error 255 make[1]: Leaving directory /home/lamberh/NVIDIA_GPU_Computing_SDK/C/src/threadFenceReduction’
make: *** [src/threadFenceReduction/Makefile.ph_build] Error 2

I assume the examples are looking for the libcutil.so etc. files. All I seem to have is libcutil.a files in the lib directory. Should the make file be generating and linking to those .so files or am I way off the mark?
Thanks

Obviously, your problem is not about gcc version yet. It is about whether the file cutil_inline.h exists, or its path be put into include path search. Please check this. It is located at:

On my machine, building threadFenceReduction after export verbose=1

See:

Done.

Thanks highman,

It was a problem with the makefile, they were pointing all in the wrong direction. I’ve compiled all the software examples. ./deviceQueryDrv works fine and generates the following output:

There are 2 devices supporting CUDA

Device 0: “Tesla C1060”

CUDA Driver Version: 2.20

CUDA Capability Major revision number: 1

CUDA Capability Minor revision number: 3

Total amount of global memory: 4294705152 bytes

Number of multiprocessors: 30

Number of cores: 240

Total amount of constant memory: 65536 bytes

Total amount of shared memory per block: 16384 bytes

Total number of registers available per block: 16384

Warp size: 32

Maximum number of threads per block: 512

Maximum sizes of each dimension of a block: 512 x 512 x 64

Maximum sizes of each dimension of a grid: 65535 x 65535 x 1

Maximum memory pitch: 262144 bytes

Texture alignment: 256 bytes

Clock rate: 1.30 GHz

Concurrent copy and execution: Yes

Run time limit on kernels: No

Integrated: No

Support host page-locked memory mapping: Yes

Compute mode: Default (multiple host threads can use this device simultaneously)

Device 1: “Quadro NVS 295”

CUDA Driver Version: 2.20

CUDA Capability Major revision number: 1

CUDA Capability Minor revision number: 3

Total amount of global memory: 267714560 bytes

Number of multiprocessors: 1

Number of cores: 8

Total amount of constant memory: 65536 bytes

Total amount of shared memory per block: 16384 bytes

Total number of registers available per block: 8192

Warp size: 32

Maximum number of threads per block: 512

Maximum sizes of each dimension of a block: 512 x 512 x 64

Maximum sizes of each dimension of a grid: 65535 x 65535 x 1

Maximum memory pitch: 262144 bytes

Texture alignment: 256 bytes

Clock rate: 1.30 GHz

Concurrent copy and execution: No

Run time limit on kernels: Yes

Integrated: No

Support host page-locked memory mapping: No

Compute mode: Default (multiple host threads can use this device simultaneously)

Test PASSED

However deviceQuery says there is no device supporting cuda and bandWidthTest gives a segmentation fault.