Skip to content

[Driver] Kernel object format 8 and compiler pin PTB 522042a - #443

Merged
YWHyuk merged 1 commit into
pytorchsim-triton-backendfrom
rtattr/stream-records
Oct 24, 2026
Merged

YWHyuk merged 1 commit into
pytorchsim-triton-backendfrom
rtattr/stream-records

Conversation

@YWHyuk

@YWHyuk YWHyuk commented Oct 24, 2026

Copy link
Copy Markdown
Collaborator

Fixes #442.

PSAL-POSTECH/PyTorchSim-Triton-Backend#340 (merged as 522042a) streams runtime attribute records through a C function the wrapper links (torchsim_runtime_attribute_write) instead of a preallocated hidden output. The kernel object's manifest loses the hidden output (file, programs, row layout), gains the attribute table's hash, and moves to format 8.

This PR:

  • accepts kernel object format 8 (pytorchsim/contract.py);
  • moves the compiler pin to 522042a (third_party/pytorchsim-triton-backend.json).

Both changes are in one commit, since neither side reads the other's old format. The launcher still calls the compiler's runtime/spike.launch and reads runtime/runtime_attribute/ as before.

The pts-pin-bump bot will open its own pin-only PR for 522042a; that one lacks the format change and is superseded by this PR.

🤖 Generated with Claude Code

https://claude.ai/code/session_01VwsFrG5HnVhsk4PphCScaB

…ed record files

PSAL-POSTECH/PyTorchSim-Triton-Backend#340 (merged as 522042a) drops the hidden output from the
manifest (its file, programs and row layout) and adds the table's hash. The launcher calls the
compiler's runtime/spike.launch and reads runtime/runtime_attribute/ as before, so nothing else
moves. The compiler pin moves to 522042a in the same commit, since neither side reads the other's
old format.
@YWHyuk
YWHyuk merged commit dd80d8c into pytorchsim-triton-backend Oct 24, 2026
4 of 6 checks passed
student-Jungmin added a commit that referenced this pull request Oct 24, 2026
…, so kernels reading runtime attributes time

The bundle job builds layer and qwen3_8b with TORCHSIM_TIMING_MODE=1 inside a container started with
TORCHSIM_FUNCTIONAL_MODE=0. Since the kernel object streams runtime attributes as record files (#418,
#443), a kernel that reads them (the grouped GEMM's block tables, RoPE's, a gather's) is timed only on
the records its functional run leaves, and timing.attribute_dir refuses the launch otherwise
("runtime_attribute not found ... run with TORCHSIM_FUNCTIONAL_MODE=1"); without Spike the rows would
also collapse to one address. The job has not left a bundle since e27b64a (2026-10-22). Locally, the
layer suite built that way left 47 of 96 workloads, the 49 others each refused so.

That run is now functional and timed; gemm (no attributes) and vector/attention (untimed) stay as they
were. The job's timeout goes 240 -> 360 min, as every layer and qwen3_8b kernel now also runs on Spike.

This commit and the pin move before it go in together: on the old pin the dispatch's sort (T = 2048,
4096) is refused at lower, which stops the layer suite the same way.
@YWHyuk
YWHyuk deleted the rtattr/stream-records branch October 26, 2026 05:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant