[docs] Document target-specific tmp buffer sizing#943
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces a new documentation file docs/pto_isa_tmp_buffer_requirements.md detailing target-specific tmp buffer sizing requirements for A2/A3 and A5 targets. It also updates docs/PTO_IR_manual.md to reference this new document and clarifies the TPRELU runtime check behavior. A review comment identifies a potential discontinuity or typo in the formula for the row-expand family's temporary buffer size.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
| tmpBytes = ceil(R / 8) * 256 when R < 256 | ||
| tmpBytes = 7680 when R >= 256 |
There was a problem hiding this comment.
There seems to be a discontinuity in the tmpBytes formula for the row-expand family.
- For
R = 255(which is< 256), the formulaceil(R / 8) * 256yieldsceil(255 / 8) * 256 = 32 * 256 = 8192bytes. - For
R = 256, the formula gives a fixed size of7680bytes.
This decrease in buffer size as R increases from 255 to 256 is counter-intuitive. If this is the correct behavior, it might be helpful to add a note explaining this discontinuity. Otherwise, this could be a typo in the formula or the condition.
Summary
tmpbuffer sizing directly in the existingpto.tile_bufsection ofdocs/PTO_IR_manual.mdTSORT32as an active tail workspace, matching current PTO-ISA master rather than the older compatibility-only descriptionTPRELUruntime valid-row requirementSource baseline
hw-native-sys/PTOAS@a1371bc7cann/pto-isa@7af803bc4056af8b39a55751ac2f4b75cdb47fbd(2026-07-15)Validation
git diff --checkdocs/PTO_IR_manual.mdDocs-only change; no compiler build was required.