-
Notifications
You must be signed in to change notification settings - Fork 526
[Windows] [memory_allocator.h] remove ET_TRY macros #8914
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
[Windows] [memory_allocator.h] remove ET_TRY macros #8914
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/8914
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 Cancelled JobAs of commit 29afa5f with merge base 24671a9 ( CANCELLED JOB - The following job was cancelled. Please retry:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
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.
The goal is to eventually remove all usages of ET_TRY_ALLOCATE_OR, ET_TRY_ALLOCATE_INSTANCE_OR, and ET_TRY_ALLOCATE_LIST_OR
, these exist to retain compatibility with the non mvc compilers while enabling mvc compilation. Since you are hitting these static assertions, I'm guessing that you are using one of these three macros somewhere in your code - that's where you should replace the macro with the recommended memory_allocator
method
c1c9c92
to
e361d95
Compare
e361d95
to
30eca6a
Compare
30eca6a
to
29afa5f
Compare
@SamGondelman has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Summary
This is the third PR in my attempt to get Windows support working. I hit these static asserts because these macros weren't implemented. Let's remove the macros and just directly allocate the memory everywhere.
Test plan
Verify everything builds + unit tests.