learn CUDA with us, from simple operation up to complex.
- Make sure you have
nvcc
, after that,
nvcc 1-add-vector-1d.cu -o 1-add-vector-1d-out
./1-add-vector-1d-out
- You can debug using cuda-gdb,
nvcc -G -g -o test 1-add-vector-1d.cu
cuda-gdb test
break vectorAdd
run