CUDA Programming 2: Compile & Run

module load cuda

cp /scratch/CUDA_test/CUDA_test.tar .

tar –xvf CUDA_test.tar

cd CUDA_test/C/src/vectorAdd

vi vadd.cu # modify the code

make

./vadd