|
|
@ -62,9 +62,8 @@ inline const char* cudnnGetErrorString(cudnnStatus_t status) {
|
|
|
|
#define CUDNN_ENFORCE(condition) \
|
|
|
|
#define CUDNN_ENFORCE(condition) \
|
|
|
|
do { \
|
|
|
|
do { \
|
|
|
|
cudnnStatus_t status = condition; \
|
|
|
|
cudnnStatus_t status = condition; \
|
|
|
|
if (status != CUDNN_STATUS_SUCCESS) { \
|
|
|
|
if (UNLIKELY(status != CUDNN_STATUS_SUCCESS)) { \
|
|
|
|
VLOG(1) << ::paddle::platform::cudnnGetErrorString(status); \
|
|
|
|
PADDLE_THROW(::paddle::platform::cudnnGetErrorString(status)); \
|
|
|
|
PADDLE_THROW("cuDNN call failed"); \
|
|
|
|
|
|
|
|
} \
|
|
|
|
} \
|
|
|
|
} while (false)
|
|
|
|
} while (false)
|
|
|
|
|
|
|
|
|
|
|
|