File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -59,13 +59,12 @@ inline const char* cudnnGetErrorString(cudnnStatus_t status) {
59
59
#define CUDNN_VERSION_MIN (major, minor, patch ) \
60
60
(CUDNN_VERSION >= ((major)*1000 + (minor)*100 + (patch)))
61
61
62
- #define CUDNN_ENFORCE (condition ) \
63
- do { \
64
- cudnnStatus_t status = condition; \
65
- if (status != CUDNN_STATUS_SUCCESS) { \
66
- VLOG (1 ) << ::paddle::platform::cudnnGetErrorString (status); \
67
- PADDLE_THROW (" cuDNN call failed" ); \
68
- } \
62
+ #define CUDNN_ENFORCE (condition ) \
63
+ do { \
64
+ cudnnStatus_t status = condition; \
65
+ if (UNLIKELY (status != CUDNN_STATUS_SUCCESS)) { \
66
+ PADDLE_THROW (::paddle::platform::cudnnGetErrorString (status)); \
67
+ } \
69
68
} while (false )
70
69
71
70
enum class DataLayout { // Not use
You can’t perform that action at this time.
0 commit comments