After get_source(CUDA), get grim and block to launch in CUDA