I’m having problems getting the SDK 2.1 samples to compile and run on Fedora 10.
My setup:
Hardware:
Intel D915GAG mobo
Pentium 4 2.8GHz
3GB RAM (DDR400, not running in dualchannel mode)
GeForce 6200 (which of course doesn’t support CUDA but I’ll list anyway for completeness)
Tesla C870
Software:
Fedora 10
gcc 4.3
Nvidia driver 177.82 installed from the RPMFusion repository
Toolkit ‘cuda-linux-rel-nightly-2.1.1635-3065709’
SDK ‘cuda-sdk-linux-2.10.1126.1520-3141441’
packages freeglut and freeglut-devel 2.4
My compiling problems:
The projects threadMigration, matrixMulDrv and simpleTextureDrv will not compile. I get this error:
make[1]: Entering directory `/home/frank/NVIDIA_CUDA_SDK/projects/simpleTextureDrv'
/usr/bin/ld: cannot find -lcuda
collect2: ld returned 1 exit status
make[1]: *** [../../bin/linux/release/simpleTextureDrv] Error 1
make[1]: Leaving directory `/home/frank/NVIDIA_CUDA_SDK/projects/simpleTextureDrv'
make: *** [projects/simpleTextureDrv/Makefile.ph_build] Error 2
I have looked at this topic: error: cannot find -lcuda, but it doesn’t solve my problem. I think I have all files, links and paths correct, as shown by the following printouts:
[frank@localhost ~]$ ls /usr/local/cuda/lib
libcublasemu.so libcublas.so.2 libcudart.so.2.1 libcufft.so
libcublasemu.so.2 libcublas.so.2.1 libcufftemu.so libcufft.so.2
libcublasemu.so.2.1 libcudart.so libcufftemu.so.2 libcufft.so.2.1
libcublas.so libcudart.so.2 libcufftemu.so.2.1
[frank@localhost ~]$ ls /usr/lib/nvidia
libcuda.so libGL.so.1 libnvidia-tls.so.177.82
libcuda.so.1 libGL.so.177.82 libXvMCNVIDIA_dynamic.so.1
libcuda.so.177.82 libnvidia-cfg.so.1 libXvMCNVIDIA.so.177.82
libGLcore.so.1 libnvidia-cfg.so.177.82 tls
libGLcore.so.177.82 libnvidia-tls.so.1
[frank@localhost ~]$ set | grep PATH
LD_LIBRARY_PATH=/usr/local/cuda/lib
PATH=/usr/lib/qt-3.3/bin:/usr/kerberos/bin:/usr/lib/ccache:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/cuda/bin:/home/frank/bin
[frank@localhost ~]$ ldconfig -p | grep cuda
libicudata.so.40 (ELF) => /usr/lib/libicudata.so.40
libcufftemu.so.2 (libc6) => /usr/local/cuda/lib/libcufftemu.so.2
libcufftemu.so (libc6) => /usr/local/cuda/lib/libcufftemu.so
libcufft.so.2 (libc6) => /usr/local/cuda/lib/libcufft.so.2
libcufft.so (libc6) => /usr/local/cuda/lib/libcufft.so
libcudart.so.2 (libc6) => /usr/local/cuda/lib/libcudart.so.2
libcudart.so (libc6) => /usr/local/cuda/lib/libcudart.so
libcuda.so.1 (libc6) => /usr/lib/nvidia/libcuda.so.1
libcuda.so (libc6) => /usr/lib/nvidia/libcuda.so
libcublasemu.so.2 (libc6) => /usr/local/cuda/lib/libcublasemu.so.2
libcublasemu.so (libc6) => /usr/local/cuda/lib/libcublasemu.so
libcublas.so.2 (libc6) => /usr/local/cuda/lib/libcublas.so.2
libcublas.so (libc6) => /usr/local/cuda/lib/libcublas.so
After removing the three projects that don’t compile, the rest compiles fine (barring a few compiler warnings). However, when I proceed to run one of the programs, I get the following error messages (I have run all programs, I have pasted all the different messages I get):
oceanFFT
CUDA FFT Ocean Simulation
Left mouse button - rotate
Middle mouse button - pan
Left + middle mouse button - zoom
'w' key - toggle wireframe
cudaSafeCall() Runtime API error in file <oceanFFT.cpp>, line 273 : unknown error.
alignedTypes
Allocating memory...
Generating host input data array...
Uploading input data to GPU memory...
Testing misaligned types...
uint8...
cutilCheckMsg() CUTIL CUDA error: testKernel() execution failed
in file <alignedTypes.cu>, line 223 : invalid device function .
asyncAPI
time spent executing by the GPU: 166.93
time spent by CPU in CUDA calls: 0.08
CPU executed 14899 iterations while waiting for GPU to finish
--------------------------------------------------------------
Test FAILED
bicubicTexture
Loaded 'lena_bw.pgm', 512 x 512 pixels
cudaSafeCall() Runtime API error in file <bicubicTexture.cu>, line 500 : invalid texture reference.
binomialOptions
Using single precision...
Using device 0: Tesla C870
Generating input data...
Running GPU binomial tree...
cudaSafeCall() Runtime API error in file <binomialOptions_kernel.cuh>, line 187 : invalid device symbol.
imageDenoising
Allocating host and CUDA memory and loading image file...
Loading ./../../../projects/imageDenoising/data/portrait_noise.bmp...
BMP width: 320
BMP height: 408
BMP file loaded successfully!
Data init done.
Initializing GLUT...
Loading extensions: No error
OpenGL window created.
Creating GL texture...
Texture created.
Creating PBO...
cudaSafeCall() Runtime API error in file <imageDenoisingGL.cpp>, line 407 : unknown error.
recursiveGaussian
This sample needs a card capable of OpenGL and display.
Please choose a different device with the -device=x argument.
simpleCUBLAS
simpleCUBLAS test running..
!!!! kernel execution error.
simpleCUFFT
cufft: ERROR: /root/cuda-stuff/sw/rel/gpgpu/toolkit/r2.1/cufft/src/execute.cu, line 1070
cufft: ERROR: CUFFT_EXEC_FAILED
cufft: ERROR: /root/cuda-stuff/sw/rel/gpgpu/toolkit/r2.1/cufft/src/cufft.cu, line 151
cufft: ERROR: CUFFT_EXEC_FAILED
cufftSafeCall() CUFFT error in file <simpleCUFFT.cu>, line 127.
deviceQuery and bandwidthTest run fine:
There is 1 device supporting CUDA
Device 0: "Tesla C870"
Major revision number: 1
Minor revision number: 0
Total amount of global memory: 1610350592 bytes
Number of multiprocessors: 16
Number of cores: 128
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.35 GHz
Concurrent copy and execution: No
Test PASSED
I do know that Fedora 10 is not officially supported, but it did run on my Fedora 8 installation (with Toolkit and SDK 1.1). I really have no idea how to proceed from this point. Anyone?