Compiling Cuda code on Hydra and Dozer

Home
In order to compile CUDA code files, you have to use  the nvcc compiler.

Cuda codes can only be compiled and executed on processors that have a GPU, such as Hydra and Dozer. Xeon does not have GPU.

Syntax

Compiling options:

-o <file>: place the output into <file>. If this option is omitted, the compiler will create executable program named a.out in working directory.

Example:

nvcc mm-cuda.cu  -o  mm-cuda

OR

nvcc  /home/john/csc5551/mm-cuda.cu   -o  /home/john/csc5551/mm-cuda