-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Add NOMINMAX define due to windows.h max/min macro conflict #25637
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
Conversation
|
Thanks for your contribution! |
|
❌This PR is not created using PR's template. You can refer to this Demo. |
jczaja
left a comment
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
grygielski
left a comment
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
|
@luotao1 Can I ask you for restarting PR_Windows_CI_OPENBLAS? It looks that it was a random fail connected to Lib.exe access. |
|
I have restarted, please have a wait. |
zhwesky2010
left a comment
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.
is there a bug already?, or just prevent future risks when add std::min/max in code
|
@zhouwei25 there was a problem adding a new data type bfloat16 #25402, so I decided to put it in a separate PR |
Could you explain the detail of your problem? |
zhwesky2010
left a comment
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.
I get it. This problem is triggered when different header files are included together. It will prevent possible risks. LGTM
PR types
Bug fixes
PR changes
Others
Describe
This PR adds NOMINMAX define before each windows.h. It is due to problem with macro min/max that conflict with std::min/max.