I downloaded CUDA 4.0.17 from nVIDIA's CUDA download website.
First remove cuda-toolkit rpm's in Mageia, otherwise new CUDA sees old CUDA already installed:
nvidia-cuda-toolkit-devel-3.2.16-1.mga1
nvidia-cuda-toolkit-3.2.16-1.mga1
install cudatoolkit_4.0.17_linux_64_fedora13.run
install cudatools_4.0.17_linux_64.run
install gpucomputingsdk_4.0.17_linux.run
install to be able to compile examples
lib64mesaglu1-devel-7.10.2-4.mga1
lib64xi-devel-1.4.2-1.mga1
lib64xmu6-devel-1.1.0-2.mga1
lib64mesaglut3-devel-7.10.2-4.mga1
su
cd /usr/lib64
ln -s /usr/lib64/nvidia-current/libcuda.so libcuda.so
exit
remove "gcc 4.5 not supported" error by commenting it out with "//" on line 82 in
/usr/local/cuda/include/host_config.h
compile the examples (NOT as root):
cd /home/bert/NVIDIA_GPU_Computing_SDK/C
export PATH=$PATH$:/usr/local/cuda/bin
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:/usr/local/cuda/lib
make
create script file for easy execution:
/home/bert/NVIDIA_GPU_Computing_SDK/C/bin/linux/release/FIRST.sh
#!/bin/sh
export PATH=$PATH$:/usr/local/cuda/bin
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:/usr/local/cuda/lib
to run an example:
source FIRST.sh
./oceanFFT
Then I wanted to use this CUDA toolkit with Matlab and GPUmat from
http://gp-you.org/But GPUmat only works with CUDA toolkit 3.2 and is not compatible with 4.0
Although the driver is 4.0 from driver version 270.41.19
>> GPUinfo(0)
There is 1 device supporting CUDA
CUDA Driver Version: 4.0
CUDA Runtime Version: 3.20
Device 0: "GeForce 8600M GT"
CUDA Capability Major revision number: 1
CUDA Capability Minor revision number: 1
Total amount of global memory: 268107776 bytes
I reinstalled the Mageia rpm's of cuda-toolkit.
3.2.16 and 4.0 do not interfere as Mageia does not install cuda on /usr/local/cuda