-
Notifications
You must be signed in to change notification settings - Fork 685
Add -fexceptions to quantized kernel generated libs #14962
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
base: main
Are you sure you want to change the base?
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/14962
Note: Links to docs will display an error until the docs builds have been completed. ❌ 5 New Failures, 2 Unrelated FailuresAs of commit 600c480 with merge base fca0f38 ( NEW FAILURES - The following jobs have failed:
FLAKY - The following jobs failed but were likely due to flakiness present on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
@Daksh-Shami has exported this pull request. If you are a Meta employee, you can view the originating Diff in D84284541. |
This PR needs a
|
@pytorchbot label "release notes: build warnings" |
Didn't find following labels among repository labels: release notes: build warnings |
3a0b7cb
to
6dfc3b3
Compare
Summary: Added compiling with `-fexceptions` since quantized kernels have exception based code in them. Example error: ``` buck-out/ABC/gen/fbsource/6e53edb0a9a0d828/xplat/executorch/kernels/quantized/__generated_lib_combined__/out/RegisterCodegenUnboxedKernelsEverything.cpp:77:44: error: exception handling disabled, use '-fexceptions' to enable 77 | } catch (const std::exception& ex) { | ``` This means the generated code uses exceptions in its code, so we should explicitly flag it to the compiler via the relevant BUCK targets. Differential Revision: D84284541
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.
Review automatically exported from Phabricator review in Meta.
…14962) Summary: Explicitly turning exception generated code off for quantized kernels as executorch does not use exceptions in general, and it can cause downstream errors. Detailed error is P1986979595 but the relevant part is: ``` buck-out/ABC/gen/fbsource/6e53edb0a9a0d828/xplat/executorch/kernels/quantized/__generated_lib_combined__/out/RegisterCodegenUnboxedKernelsEverything.cpp:77:44: error: exception handling disabled, use '-fexceptions' to enable 77 | } catch (const std::exception& ex) { | ``` This means the generated code uses exceptions in its code, so we should explicitly turn them off. Differential Revision: D84284541
6dfc3b3
to
600c480
Compare
Summary:
Added compiling with
-fexceptions
since quantized kernels have exception based code in them. Example error:This means the generated code uses exceptions in its code, so we should explicitly flag it to the compiler via the relevant BUCK targets.
Differential Revision: D84284541