-
Notifications
You must be signed in to change notification settings - Fork 707
compiler.h changes for Windows MSVC support #6623
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
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/6623
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New FailureAs of commit 0677a48 with merge base 8a4e492 ( NEW FAILURE - The following job has failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
This pull request was exported from Phabricator. Differential Revision: D65328573 |
Summary: Pull Request resolved: #6623 Differential Revision: D65328573
6b11ec8 to
ea21c7a
Compare
|
This pull request was exported from Phabricator. Differential Revision: D65328573 |
ea21c7a to
19aa228
Compare
Summary: Pull Request resolved: #6623 Differential Revision: D65328573
|
This pull request was exported from Phabricator. Differential Revision: D65328573 |
Summary: Adding some MSVC (Windows) specific macros to compiler.h to make sure we can build with MSVC. Differential Revision: D65328573
19aa228 to
72fbf8b
Compare
|
This pull request was exported from Phabricator. Differential Revision: D65328573 |
72fbf8b to
80b0f91
Compare
Summary: Adding some MSVC (Windows) specific macros to compiler.h to make sure we can build with MSVC. Differential Revision: D65328573
|
This pull request was exported from Phabricator. Differential Revision: D65328573 |
Summary: Adding some MSVC (Windows) specific macros to compiler.h to make sure we can build with MSVC. Differential Revision: D65328573
80b0f91 to
0f120f4
Compare
|
This pull request was exported from Phabricator. Differential Revision: D65328573 |
Summary: Adding some MSVC (Windows) specific macros to compiler.h to make sure we can build with MSVC. Differential Revision: D65328573
0f120f4 to
953b1bc
Compare
|
This pull request was exported from Phabricator. Differential Revision: D65328573 |
Summary: Adding some MSVC (Windows) specific macros to compiler.h to make sure we can build with MSVC. Reviewed By: dbort Differential Revision: D65328573
Summary: Adding some MSVC (Windows) specific macros to compiler.h to make sure we can build with MSVC. Reviewed By: dbort Differential Revision: D65328573
953b1bc to
689673c
Compare
|
This pull request was exported from Phabricator. Differential Revision: D65328573 |
Summary: Adding some MSVC (Windows) specific macros to compiler.h to make sure we can build with MSVC. Reviewed By: dbort Differential Revision: D65328573
689673c to
be2de10
Compare
|
This pull request was exported from Phabricator. Differential Revision: D65328573 |
Summary: Adding some MSVC (Windows) specific macros to compiler.h to make sure we can build with MSVC. Reviewed By: dbort Differential Revision: D65328573
be2de10 to
e42c91a
Compare
|
This pull request was exported from Phabricator. Differential Revision: D65328573 |
| if (a.isInt() && b.isInt()) { | ||
| const int64_t quot = a.toInt() / b.toInt(); | ||
| if (std::signbit(a.toInt()) == std::signbit(b.toInt())) { | ||
| if ((a.toInt() < 0) == (b.toInt() < 0)) { |
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.
This feels unrelated to PR in question, is it?
Summary: Adding some MSVC (Windows) specific macros to compiler.h to make sure we can build with MSVC. Reviewed By: dbort Differential Revision: D65328573
e42c91a to
641c52e
Compare
|
This pull request was exported from Phabricator. Differential Revision: D65328573 |
Summary: Adding some MSVC (Windows) specific macros to compiler.h to make sure we can build with MSVC. Reviewed By: dbort Differential Revision: D65328573
Summary: Adding some MSVC (Windows) specific macros to compiler.h to make sure we can build with MSVC. Reviewed By: dbort Differential Revision: D65328573
Summary: Adding some MSVC (Windows) specific macros to compiler.h to make sure we can build with MSVC. Reviewed By: dbort Differential Revision: D65328573
641c52e to
bb5008b
Compare
|
This pull request was exported from Phabricator. Differential Revision: D65328573 |
Summary: Adding some MSVC (Windows) specific macros to compiler.h to make sure we can build with MSVC. Reviewed By: dbort Differential Revision: D65328573
Summary: Adding some MSVC (Windows) specific macros to compiler.h to make sure we can build with MSVC. Reviewed By: dbort Differential Revision: D65328573
Summary: Adding some MSVC (Windows) specific macros to compiler.h to make sure we can build with MSVC. Reviewed By: dbort Differential Revision: D65328573
bb5008b to
86fb5fb
Compare
Summary: Adding some MSVC (Windows) specific macros to compiler.h to make sure we can build with MSVC. Reviewed By: dbort Differential Revision: D65328573
|
This pull request was exported from Phabricator. Differential Revision: D65328573 |
Summary: Adding some MSVC (Windows) specific macros to compiler.h to make sure we can build with MSVC. Reviewed By: dbort Differential Revision: D65328573
Summary: Adding some MSVC (Windows) specific macros to compiler.h to make sure we can build with MSVC. Reviewed By: dbort Differential Revision: D65328573
86fb5fb to
0677a48
Compare
|
This pull request was exported from Phabricator. Differential Revision: D65328573 |
Summary: Adding some MSVC (Windows) specific macros to compiler.h to make sure we can build with MSVC. Reviewed By: dbort Differential Revision: D65328573
| // There currently doesn't seem to be a great way to do this in Windows and | ||
| // given that weak linkage is not really critical on Windows, we'll just leave | ||
| // it as a stub. | ||
| #define ET_WEAK |
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.
Hi, we are adding Windows x64 Build Support #6979. I use .\install_requirements.bat --pybind xnnpack to build on windows. And we encountered duplicate symbol problem.

I investigated and found that windows didn't support weak symbol. Do you have some insights how to resolve this?
Differential Revision: D65328573