another DP example in CUDA