CSE260 Fa15 - CUDA



The definitive source source of information for CUDA is the Nvidia CUDA Zone.

The main documents you will be interested in are the following, which may all be accessed via NVIDIA’s CUDA Toolkit Documentation web pages, located at http://docs.nvidia.com/cuda/index.html#:

Here is a handy reference, from the Programming Guide, that compares the different compute capbilities: http://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#features-and-technical-specifications

Be sure to try out, nvprof, the command line performance profiler (The visual interface is not yet working on Sorken). Here are step to step instructions:

http://devblogs.nvidia.com/parallelforall/cuda-pro-tip-nvprof-your-handy-universal-gpu-profiler

There are also detailed instructions in §3 of the Profiler User’s Guide. Be sure to read about other tools at the top level of the document: http://docs.nvidia.com/cuda/profiler-users-guide/index.html#axzz3niqoaAVU

If using the visual interface, you need to follow instructions at http://cseweb.ucsd.edu/classes/fa15/cse260-a/lab.html for setting up the remote display in ssh.

Nvprof may be run within a batch job. To use nvprof, take the following steps.

export COMPUTE_PROFILE=1
export COMPUTE_PROFILE_LOG=~/nvprof.txt
export COMPUTE_PROFILE_CONFIG=~/nvprof_config.txt
gpustarttimestamp
gridsize3d
threadblocksize
active_warps
active_cycles
make debug=1
./mmpy -n 1024 -x 32 -y 32 -r 1 -R