This example shows the managed memory feature in CUDA. Based on An Even Easier Introduction to CUDA.
CUDA Toolkit and Drivers.
Open a terminal and type:
sh run.sh
A typical output should look like this one.
[100%] Linking CXX executable application-CUDA
[100%] Built target application-CUDA
Max error: 0