Configuring /Accessing CUDA
CUDA-3.0 is currently installed in all the nodes. The environment variables for CUDA is loaded in the PATH itself
CUDA Example
After login to your home directory,Copy the test directory (NVIDIA_GPU_Computing_SDK) from /usr/local/cuda to your local directory.
cp -R /gpuusers/NVIDIA_GPU_Computing_SDK .
To run a deviceQuery executable, please do the following steps:
cd NVIDIA_GPU_Computing_SDK/C/bin/linux/release
File Name : job.sh
#! /bin/bash
#PBS -o logfile.log
#PBS -e errorfile.err
#PBS -l cput=02:00:00
#PBS -l select=1:ncpus=1:ngpus=1
cat $PBS_NODEFILE
cd $PBS_O_WORKDIR
./deviceQuery
Submit the job:
qsub
You should be able to get information about CUDA. This information such as number of cores, number of multiprocessors etc might be useful during CUDA programming.
If you there is no path to cuda then, you won't be able to load cuda libraries and encounter an error as follows:
./deviceQuery: error while loading shared libraries: libcudart.so.3: cannot open shared object file: No such file or directory
( Important Note: Please consider using batch submission to minimize the wastage of GPU resources and restrict interactive method for testing purpose only.)
Copyright © 2014 - All Rights Reserved - Domain Name
Template by OS Templates