CUDA sample code