-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cherry picked windows patches. #14046
Conversation
#define CUDNN_ENFORCE(condition) \ | ||
do { \ | ||
cudnnStatus_t status = condition; \ | ||
if (UNLIKELY(status != CUDNN_STATUS_SUCCESS)) { \ | ||
PADDLE_THROW(::paddle::platform::cudnnGetErrorString(status)); \ | ||
} \ | ||
} while (false) | ||
#else |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UNLIKELY 在paddle/fluid/inference/analysis/argument.h 做了条件编译,这里就不需要分别处理了
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
在 paddle/fluid/platform/enforce.h 里
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cudnn_helper.h里加和unlikely没关系,
是因为PADDLE_THROW windows不会抛栈,用std::cerr << 输出cudnn错误。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
是修复cudnn时候的,加入PADDLE_ENFORCE抛栈,可以去掉这一块。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
请研发老师们注意:pr中如果涉及对/doc目录的改动,reviewer请加shanyi15,多谢 |
No description provided.