GPGPUs
What are GPGPUs?
GPGPUs are general-purpose graphics processing units. This means using graphics cards for doing general purpose computing. Because of the demand of modern graphics-intensive programs, graphics cards have become very power computers in their own right. For example, the NVidia GeForce 8600GT cards available in nyx have 1GB RAM and 32 special-purpose CPUs running at more than 1/2 GHz, while the S1070's on nyx have 4GB of ram, double precision and 240 special-purpose CPU's running at more than 1GHz.
GPGPUs are particularly good at matrix multiplication, random number generation, FFTs, and other numerically intensive and repetitive mathematical operations. They can deliver 5-10 times speed-up for many codes with careful programming.
For more examples of applications that are well-suited to CUDA see NVidia's CUDA pages at http://www.nvidia.com/object/cuda_home.html.
Programming for GPGPUs
The GPGPUs on nyx are NVidia graphics cards and use NVidia's Cuda programming language. This is a very C-like language (that can be linked with Fortan codes) that makes programming for GPGPUs straightforward. For more information on CUDA programming, see the documentation at http://www.nvidia.com/object/cuda_develop.html.
NVidia also makes special libraries available that make using the GPGPUs even easier. Two of these libraries are cudablas and cufft.
cudablas is a single-precision BLAS library that uses the GPGPU for matrix operations. For more information on the BLAS routines implemented by cudablas, see the documentation at http://www.nvidia.com/object/cuda_develop.html.
CUFFT is a set of FFT routines that use the GPGPU for their calculations. For more information on the FFT routines implemented by cudafft, see the documentation at http://www.nvidia.com/object/cuda_develop.html.
To use the CUDA compiler (nvcc) or to link your code against one of the CUDA-enabled libraries on nyx, load the cuda module by typing:
module load cudaThis will give you access to the nvcc compiler and will set the environment variable CUDA_INSTALL_PATH which can be used to link against libcudablas, libcufft, and other CUDA libraries in ${CUDA_INSTALL_PATH}/lib.
CUDA-based applications can be compiled on the nyx login nodes, but cannot be run there, since they do not have GPGPUs.
To install the sample code type NVIDIA_CUDA_SDK_2.02.0807.1535_linux.run after loading the CUDA module; answer the questions about where you want it installed, then you can go into that directory and type make to compile the sample code. Note that any of the sample codes that require an XWindows interface will not work on nyx.
Submitting Batch Jobs
For submitting jobs, and setting the GPU see our CUDA software page.


