Some sample codes from NVIDIA CUDA's driver