[Windows] [memory_allocator.h] remove ET_TRY macros#8914
[Windows] [memory_allocator.h] remove ET_TRY macros#8914facebook-github-bot merged 2 commits intopytorch:mainfrom
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. |
jackzhxng
left a comment
There was a problem hiding this comment.
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.