You are viewing a plain text version of this content. The canonical link for it is here.
Posted to discuss-archive@tvm.apache.org by "akaashrp (via GitHub)" <gi...@apache.org> on 2026/08/22 05:45:59 UTC
[PR] [Web] Avoid copies when uploading WASM memory to WebGPU [tvm]
akaashrp opened a new pull request, #20165:
URL: https://github.com/apache/tvm/pull/20165
Avoid an intermediate `Uint8Array` copy when uploading aligned data from WASM memory to WebGPU.
- Add a bounds-checked borrowed view of Wasm linear memory
- Pass that view directly to `GPUQueue.writeBuffer`
- Preserve padding for unaligned transfers
- Round GPU allocations and readbacks to WebGPU’s four-byte copy alignment
- Validate GPU copy offsets and handle zero-length readbacks
`writeBuffer` snapshots its source before returning, so the borrowed WASM view does not need to remain valid after the call.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org
For additional commands, e-mail: discuss-archive-help@tvm.apache.org
Re: [PR] [Web] Avoid copies when uploading WASM memory to WebGPU [tvm]
Posted by "tlopex (via GitHub)" <gi...@apache.org>.
tlopex merged PR #20165:
URL: https://github.com/apache/tvm/pull/20165
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org
For additional commands, e-mail: discuss-archive-help@tvm.apache.org