Page 1 of 1

CUDA toolkit 4.0.17

PostPosted: Jun 8th, '11, 10:54
by bertaerts
I created Bug 1565 https://bugs.mageia.org/show_bug.cgi?id=1565 to request CUDA toolkit 4.0.17.
It is still not assigned...

Re: CUDA toolkit 4.0.17

PostPosted: Jun 8th, '11, 12:42
by Akien
Well, you may wait a bit longer that 36 hours. As you see, it is the bug 1565, I suppose there are a thousand bugs open, and our triage team is still small.

Re: CUDA toolkit 4.0.17

PostPosted: Jun 11th, '11, 08:15
by bertaerts
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

Re: CUDA toolkit 4.0.17

PostPosted: Jun 12th, '11, 22:05
by bertaerts
Today I found that GPUmat for CUDA 4.0 is available as GPUmat_0.270_glnxa64_build110609_CUDA_4.0.tgz

After some symbolic links, GPUmat works excellent
cd /usr/local/MATLAB/R2011a/bin/glnxa64
ln -s /usr/local/cuda/lib64/libcublas.so libcublas.so
ln -s /usr/local/cuda/lib64/libcudart.so libcudart.so
ln -s /usr/local/cuda/lib64/libcufft.so libcufft.so
ln -s /usr/local/cuda/lib64/libcurand.so libcurand.so
ln -s /usr/local/cuda/lib64/libcusparse.so libcusparse.so
ln -s /usr/local/cuda/lib64/libnpp.so libnpp.so
ln -s /usr/local/cuda/lib64/libcublas.so libcublas.so.4
ln -s /usr/local/cuda/lib64/libcudart.so libcudart.so.4
ln -s /usr/local/cuda/lib64/libcufft.so libcufft.so.4
ln -s /usr/local/cuda/lib64/libcurand.so libcurand.so.4
ln -s /usr/local/cuda/lib64/libcusparse.so libcusparse.so.4
ln -s /usr/local/cuda/lib64/libnpp.so libnpp.so.4

I removed the Mageia rpm's again.