1 | //hellocuda.cu |
在命令行执行1
2 nvcc hellocuda.cu -o hellocuda
./hellocuda
输出结果:1
2
3
4
5hello, cvudakernel
hello, cvudakernel
hello, cvudakernel
hello, cvudakernel
hello, cvudakernel
与其感慨路难行,不如马上出发
1 | //hellocuda.cu |
在命令行执行1
2$nvcc hellocuda.cu -o hellocuda
$./hellocuda
输出结果:1
2
3
4
5hello, cvudakernel
hello, cvudakernel
hello, cvudakernel
hello, cvudakernel
hello, cvudakernel