Created by: chenwhql
when cuda check use PADDLE_ENFORCE directly, but not use PADDLE_ENFORCE_CUDA_SUCCESS, it will not throw cuda related hint, this PR fix this problem.
original:
13: ----------------------
13: Error Message Summary:
13: ----------------------
13: Error: Paddle internal Check failed. (Please help us create a new issue, here we need to find the developer to add a user friendly error message) at (/work/Paddle/paddle/fluid/platform/enforce_test.cc:280)
new:
13: ----------------------
13: Error Message Summary:
13: ----------------------
13: Error: Paddle internal Check failed. (Please help us create a new issue, here we need to find the developer to add a user friendly error message)
13: [Hint: CUDNN_STATUS_NOT_INITIALIZED] at (/work/paddle/paddle/fluid/platform/enforce_test.cc:280)