CARVIEW |
Navigation Menu
-
Notifications
You must be signed in to change notification settings - Fork 24.7k
Add unaligned attributes to q8gemm/4x4c2-sse2.c #140188
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
This appears to be a diff that was exported from phabricator, but the PR author does not have sufficient permissions to run CI. @k-sheridan, please do step 2 of internal wiki to get write access so you do not need to get CI approvals in the future. If you think this is a mistake, please contact the Pytorch Dev Infra team. |
|
đź”— Helpful Linksđź§Ş See artifacts and rendered test results at hud.pytorch.org/pr/140188
Note: Links to docs will display an error until the docs builds have been completed. âś… No FailuresAs of commit 183761f with merge base beae772 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This pull request was exported from Phabricator. Differential Revision: D65637959 |
Summary: UBSan hits undefined behavior in this file. This fixes it by marking these pointers as unaligned. ``` caffe2/aten/src/ATen/native/quantized/cpu/qnnpack/__ukernels_sse2__/buck-private-headers/q8gemm/4x4c2-sse2.c:325:5: runtime error: store to misaligned address 0x62900313891f for type 'uint32_t' (aka 'unsigned int'), which requires 4 byte alignment 0x62900313891f: note: pointer points here be be be be be be be be be be be be be be be be be be be be be be be be be be be be be be be be ^ UndefinedBehaviorSanitizer: undefined-behavior buck-caffe2/aten/src/ATen/native/quantized/cpu/qnnpack/__ukernels_sse2__/buck-private-headers/q8gemm/4x4c2-sse2.c:325:5 in ``` The fix is to mark these variables as unaligned following D42179009's example Test Plan: repro without this diff `buck run arvr/mode/platform010/dev-asan //arvr/libraries/vega/applications/colocation_replay/replayers/tests:smoke_test` Differential Revision: D65637959
46174ac
to
fcfa044
Compare
This pull request was exported from Phabricator. Differential Revision: D65637959 |
Summary: UBSan hits undefined behavior in this file. This fixes it by marking these pointers as unaligned. ``` caffe2/aten/src/ATen/native/quantized/cpu/qnnpack/__ukernels_sse2__/buck-private-headers/q8gemm/4x4c2-sse2.c:325:5: runtime error: store to misaligned address 0x62900313891f for type 'uint32_t' (aka 'unsigned int'), which requires 4 byte alignment 0x62900313891f: note: pointer points here be be be be be be be be be be be be be be be be be be be be be be be be be be be be be be be be ^ UndefinedBehaviorSanitizer: undefined-behavior buck-caffe2/aten/src/ATen/native/quantized/cpu/qnnpack/__ukernels_sse2__/buck-private-headers/q8gemm/4x4c2-sse2.c:325:5 in ``` The fix is to mark these variables as unaligned following D42179009's example Test Plan: q8gemm.cc + internal integration test Differential Revision: D65637959
fcfa044
to
183761f
Compare
This pull request was exported from Phabricator. Differential Revision: D65637959 |
@pytorchbot merge (Initiating merge automatically since Phabricator Diff has merged) |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Summary: UBSan hits undefined behavior in this file. This fixes it by marking these pointers as unaligned. ``` caffe2/aten/src/ATen/native/quantized/cpu/qnnpack/__ukernels_sse2__/buck-private-headers/q8gemm/4x4c2-sse2.c:325:5: runtime error: store to misaligned address 0x62900313891f for type 'uint32_t' (aka 'unsigned int'), which requires 4 byte alignment 0x62900313891f: note: pointer points here be be be be be be be be be be be be be be be be be be be be be be be be be be be be be be be be ^ UndefinedBehaviorSanitizer: undefined-behavior buck-caffe2/aten/src/ATen/native/quantized/cpu/qnnpack/__ukernels_sse2__/buck-private-headers/q8gemm/4x4c2-sse2.c:325:5 in ``` The fix is to mark these variables as unaligned following D42179009's example q8gemm.cc + internal integration test Differential Revision: D65637959 Pull Request resolved: pytorch#140188 Approved by: https://github.com/digantdesai
Summary: UBSan hits undefined behavior in this file. This fixes it by marking these pointers as unaligned. ``` caffe2/aten/src/ATen/native/quantized/cpu/qnnpack/__ukernels_sse2__/buck-private-headers/q8gemm/4x4c2-sse2.c:325:5: runtime error: store to misaligned address 0x62900313891f for type 'uint32_t' (aka 'unsigned int'), which requires 4 byte alignment 0x62900313891f: note: pointer points here be be be be be be be be be be be be be be be be be be be be be be be be be be be be be be be be ^ UndefinedBehaviorSanitizer: undefined-behavior buck-caffe2/aten/src/ATen/native/quantized/cpu/qnnpack/__ukernels_sse2__/buck-private-headers/q8gemm/4x4c2-sse2.c:325:5 in ``` The fix is to mark these variables as unaligned following D42179009's example q8gemm.cc + internal integration test Differential Revision: D65637959 Pull Request resolved: pytorch#140188 Approved by: https://github.com/digantdesai
Summary: UBSan hits undefined behavior in this file. This fixes it by marking these pointers as unaligned. ``` caffe2/aten/src/ATen/native/quantized/cpu/qnnpack/__ukernels_sse2__/buck-private-headers/q8gemm/4x4c2-sse2.c:325:5: runtime error: store to misaligned address 0x62900313891f for type 'uint32_t' (aka 'unsigned int'), which requires 4 byte alignment 0x62900313891f: note: pointer points here be be be be be be be be be be be be be be be be be be be be be be be be be be be be be be be be ^ UndefinedBehaviorSanitizer: undefined-behavior buck-caffe2/aten/src/ATen/native/quantized/cpu/qnnpack/__ukernels_sse2__/buck-private-headers/q8gemm/4x4c2-sse2.c:325:5 in ``` The fix is to mark these variables as unaligned following D42179009's example q8gemm.cc + internal integration test Differential Revision: D65637959 Pull Request resolved: pytorch#140188 Approved by: https://github.com/digantdesai
Summary: UBSan hits undefined behavior in this file. This fixes it by marking these pointers as unaligned. ``` caffe2/aten/src/ATen/native/quantized/cpu/qnnpack/__ukernels_sse2__/buck-private-headers/q8gemm/4x4c2-sse2.c:325:5: runtime error: store to misaligned address 0x62900313891f for type 'uint32_t' (aka 'unsigned int'), which requires 4 byte alignment 0x62900313891f: note: pointer points here be be be be be be be be be be be be be be be be be be be be be be be be be be be be be be be be ^ UndefinedBehaviorSanitizer: undefined-behavior buck-caffe2/aten/src/ATen/native/quantized/cpu/qnnpack/__ukernels_sse2__/buck-private-headers/q8gemm/4x4c2-sse2.c:325:5 in ``` The fix is to mark these variables as unaligned following D42179009's example q8gemm.cc + internal integration test Differential Revision: D65637959 Pull Request resolved: pytorch#140188 Approved by: https://github.com/digantdesai
Summary:
UBSan hits undefined behavior in this file. This fixes it by marking these pointers as unaligned.
The fix is to mark these variables as unaligned following D42179009's example
q8gemm.cc + internal integration test
Differential Revision: D65637959
cc @jgong5 @mingfeima @XiaobingSuper @sanchitintel @ashokei @jingxu10