Setting up openCL
I am still developing the procedure that follows. I don't have openCL working yet.
I will use openCL to do radio array computations faster.
I am running Scientific Linux on a Scientific Linux 6.2 system (2.6.32 kernel), Intel P4 3GHz 2CPU 12000 bogomips. My graphics card is an nVidia G92 9800GTX (112 CUDA cores, 512MB RAM, PCIEx16 gen1). This drives a 20 inch Viewsonic 1400x1050 display.
See https://developer.nvidia.com/opencl
Setting up the nVidia driver
- 0) back up /etc/r
1) download the NVIDIA driver installer from http://www.nvidia.com/object/linux-display-ia32-310.44-driver.html
- 2) Turn off the nouveau driver.
- in /etc/grub.conf, add rdblacklist=nouveau to the end of each "kernel" line
- 3) reboot to single user, telinit 3
- 4) run the NVIDIA driver installer. Among other things, this will add /etc/modprobe.d/nvidia-installer-disable-nouveau.conf
This adds a whole bunch of files and modules, including /etc/OpenCL with an nVidia vendor file.
The installed driver is 310.44, NV-Control Version 1.28
Note - I did this before setting up the SDK. The SDK may also have the driver!
Setting up the SDK
also see http://docs.nvidia.com/cuda/cuda-getting-started-guide-for-linux/index.html
download CUDA from https://developer.nvidia.com/cuda-downloads
- Yikes! there is no entry for RHEL6 32 bit! Let's try RHEL5 32 bit.
- Click that button, download the 570MB cuda_5.0.35_linux_32_rhel5.x-1.run
- run that as root
- modify the PATH to include /usr/local/cuda-5.0/bin . I put this in /etc/profiles.d/cuda.sh:
- PATH=/usr/local/cuda-5.0/bin:${PATH}
- export PATH
- I put this in /etc/ld.so.conf.d/cuda.conf:
- /usr/local/cuda-5.0/lib
- then ran ldconfig as root
- /usr/bin/nvidia-settings . . . nvcc -V . . .
More setup to prepare for samples
- yum install freeglut
- ln -s /usr/lib/libglut.so.3 /usr/lib/libglut.so
- yum install openmpi openmpi-devel
- ln -s /usr/lib/openmpi/bin/mpicxx /usr/local/bin/mpicxx
- yum install libXmu-devel
samples
- sh cuda*run -silent -driver -samples
- cd /usr/local/cuda-5.0/samples . . . . make
- in /usr/local/cuda-5.0/samples/bin/linux/release:
- smokeParticles
- randomFog
Comparison of nVidia cards:
Card |
9800 GT |
GTX 570 |
Titan |
Release |
2008/07 |
2010/12 |
2013/02 |
Tech |
65nm |
40nm |
28nm |
Core Clock |
600MHz |
732MHz |
836MHz |
Power |
125W |
219W |
250W |
RAM |
512M |
1280M |
6144M |
GFlop |
504 |
1405 |
4500 |
Cores |
112 |
480 |
2688 |
OpenCL |
1.1 |
1.1 |
1.2 |
Rel. Price |
|
$349 |
$1000 |