modify for CUDA 0_Sample