docs(repro): use supported indirect address-table ABI - #1207
docs(repro): use supported indirect address-table ABI#1207learning-chip wants to merge 19 commits into
Conversation
|
We reviewed the pointer-table requirement and propose keeping nested PTO pointer types unsupported. Please represent a GM pointer table explicitly as The supported pattern is: def kernel(
table: pto.ptr(pto.i64, "gm"),
dst: pto.ptr(pto.f32, "gm"),
):
addr = pto.load_scalar(table, i, bypass_l1=True)
src = pto.castptr(addr, pto.ptr(pto.f32, "gm"))
# Use src with load_scalar, mte_gm_ub, etc.This models each table entry according to its actual ABI representation: a 64-bit device address. We verified this pattern on the latest
Therefore we do not plan to add |
ba2d990 to
c674ec7
Compare
c674ec7 to
9c51301
Compare
Summary
pto.load_ptrsketches with the supported GMi64address-table ABIpto.ld_dev,pto.castptr, and GM-to-UB DMA from a dynamically selected table entryValidation
python -m py_compile docs/repro/indirect_buffer_abi/fixtures/pointer_table_abi.pygit diff --checkRelates to #1219