code on Hydra and Dozer
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.
- nvcc <path> source_code.cu –o <path> exec_program
place the output into <file>. If this option is omitted, the
compiler will create executable program named a.out in working
nvcc mm-cuda.cu -o mm-cuda
nvcc /home/john/csc5551/mm-cuda.cu -o /home/john/csc5551/mm-cuda