-
Notifications
You must be signed in to change notification settings - Fork 748
Add ETPRIsize_t support to ExecuTorch for Xtensa #7895
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/7895
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 1b92ed9 with merge base 71c0ad8 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
This pull request was exported from Phabricator. Differential Revision: D68131252 |
|
@pytorchbot label "topic: not user facing" |
8aa5eec to
036ca20
Compare
Summary: topic: not user facing Our Xtensa G3's toolchain, which is as recent as RJ-2024.3 release doesn't have %zu format specifier support. Since we only have the precompiled libc.a provided from cadence -- it seems from the disassembly that only the following are supported %c: character %s: string %d: decimal integer %i: decimal integer (same as %d) %u: unsigned decimal integer %x: hexadecimal integer %X: uppercase hexadecimal integer %p: pointer which is consistent with what I've seen come-out from ET_LOG prints that pass through the vsnprintf specifier Haven't heard of a 64-bit Xtensa DSP, so I think this 'lu' specifier mapping should work for all Xtensa toolchains regardless of vsnprintf implementation. This diff also updates a couple of places where I most commonly see the mishandled %zu specifier. If the changes are okay, I can more widely update print statements in ExecuTorch. It would touch a lot of files, some of which would never be compiled for Xtensa. Differential Revision: D68131252
|
This pull request was exported from Phabricator. Differential Revision: D68131252 |
Summary: topic: not user facing Our Xtensa G3's toolchain, which is as recent as RJ-2024.3 release doesn't have %zu format specifier support. Since we only have the precompiled libc.a provided from cadence -- it seems from the disassembly that only the following are supported %c: character %s: string %d: decimal integer %i: decimal integer (same as %d) %u: unsigned decimal integer %x: hexadecimal integer %X: uppercase hexadecimal integer %p: pointer which is consistent with what I've seen come-out from ET_LOG prints that pass through the vsnprintf specifier Haven't heard of a 64-bit Xtensa DSP, so I think this 'lu' specifier mapping should work for all Xtensa toolchains regardless of vsnprintf implementation. This diff also updates a couple of places where I most commonly see the mishandled %zu specifier. If the changes are okay, I can more widely update print statements in ExecuTorch. It would touch a lot of files, some of which would never be compiled for Xtensa. Differential Revision: D68131252
036ca20 to
0ca181e
Compare
|
This pull request was exported from Phabricator. Differential Revision: D68131252 |
Summary: topic: not user facing Our Xtensa G3's toolchain, which is as recent as RJ-2024.3 release doesn't have %zu format specifier support. Since we only have the precompiled libc.a provided from cadence -- it seems from the disassembly that only the following are supported %c: character %s: string %d: decimal integer %i: decimal integer (same as %d) %u: unsigned decimal integer %x: hexadecimal integer %X: uppercase hexadecimal integer %p: pointer which is consistent with what I've seen come-out from ET_LOG prints that pass through the vsnprintf specifier Haven't heard of a 64-bit Xtensa DSP, so I think this 'lu' specifier mapping should work for all Xtensa toolchains regardless of vsnprintf implementation. This diff also updates a couple of places where I most commonly see the mishandled %zu specifier. If the changes are okay, I can more widely update print statements in ExecuTorch. It would touch a lot of files, some of which would never be compiled for Xtensa. Differential Revision: D68131252
7e103f0 to
1b92ed9
Compare
|
This pull request was exported from Phabricator. Differential Revision: D68131252 |
Summary:
Our Xtensa G3's toolchain, which is as recent as RJ-2024.3 release doesn't have %zu format specifier support. Since we only have the precompiled libc.a provided from cadence -- it seems from the disassembly that only the following are supported
%c: character
%s: string
%d: decimal integer
%i: decimal integer (same as %d)
%u: unsigned decimal integer
%x: hexadecimal integer
%X: uppercase hexadecimal integer
%p: pointer
which is consistent with what I've seen come-out from ET_LOG prints that pass through the vsnprintf specifier
Haven't heard of a 64-bit Xtensa DSP, so I think this 'lu' specifier mapping should work for all Xtensa toolchains regardless of vsnprintf implementation.
This diff also updates a couple of places where I most commonly see the mishandled %zu specifier. If the changes are okay, I can more widely update print statements in ExecuTorch. It would touch a lot of files, some of which would never be compiled for Xtensa.
Differential Revision: D68131252