This example shows the addition of two vectors in CUDA.
CUDA Toolkit and proper Drivers.
Open a terminal and type:
sh run.sh
A typical output should look like this one.
Vector Addition with 100000 Elements
Tiempo GPU: 1.908000
Tiempo CPU: 1.076000
Checked operation!
Executed program succesfully.