A quick start on CUDA
All machines in coover 2050 are installed with CUDA.
Before you run a simple program, you need to:
Setting environment variables export PATH=/usr/local/cuda/bin:$PATH export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH
1) go to the directory of your sample code.
2) To compile hello_world.cu
nvcc hello_world.cu
3) This will generate an executable file: a.out
5) ./a.out
The cuda sample code can be downloaded from:CUDA by example
hello_world.cu is in chapter03.