Created by: sneaxiy
Use standard Paddle exception handling method PADDLE_ENFORCE to throw exception thrown by CUDADeviceContext::Wait().
PADDLE_ENFORCE
CUDADeviceContext::Wait()