Skip to content

[CI] The gate and the Triton route run when pytorchsim-triton-backend moves, not per pull request - #351

Merged
YWHyuk merged 1 commit into
pytorchsim-triton-backendfrom
ci-on-branch-update
Oct 13, 2026
Merged

YWHyuk merged 1 commit into
pytorchsim-triton-backendfrom
ci-on-branch-update

Conversation

@YWHyuk

@YWHyuk YWHyuk commented Oct 13, 2026

Copy link
Copy Markdown
Collaborator

What

Docker image CI and Triton codegen route no longer start on pull_request. They start when the pytorchsim-triton-backend branch moves (a merge or a push) and on workflow_dispatch.

Why

Every push to a pull request started the gate, and on a path match the Triton route too. Each takes the self-hosted runners for a base image, an app image and one container per test, so runs queued behind each other for up to a day (six were queued and have been cancelled).

Changes

  • docker-image.yml: pull_request to master/develop/pytorchsim-triton-backend becomes push to pytorchsim-triton-backend.
  • pytorchsim_triton_backend.yml: the same; its paths filter is kept.
  • Both get a concurrency group per ref with cancel-in-progress, so a newer push cancels the run of the one before it.
  • SOURCE_SHA and the three test image tags are github.sha; there is no pull_request event left to read a head sha from.

What to know

  • A pull request is no longer checked before it is merged. A failure shows up on the branch after the merge. To check a branch before merging, start the workflow by hand: gh workflow run "Docker image CI" --ref <branch>.
  • master and develop have their own copies of these files and are not changed here. A pull request into them still starts their workflows.
  • tag_release.yml and wiki.yml are untouched.

Verified

Both files load as YAML with the triggers above. No run was started to try them.

… moves, not per pull request

Every push to a pull request started the Docker image CI and, on a path match,
the Triton route, each taking the self-hosted runners for a base image, an app
image and one container per test. Runs queued for a day behind each other.

Both workflows now start on a push to pytorchsim-triton-backend (a merge) and
on workflow_dispatch. A newer push to the same ref cancels the run before it.
The Triton route keeps its path filter. SOURCE_SHA is github.sha: there is no
pull_request event left to read a head sha from.
@YWHyuk
YWHyuk merged commit 4aed817 into pytorchsim-triton-backend Oct 13, 2026
YWHyuk added a commit that referenced this pull request Oct 13, 2026
…the Docker image CI by hand

Every push to a pull request started the Docker image CI and, on a path match,
the Triton route, each taking the self-hosted runners for a base image, an app
image and one container per test. Runs queued for a day behind each other.

Neither starts for a pull request any more. The Triton route starts on a push
to pytorchsim-triton-backend (a merge) with its path filter, and a newer push
to the same ref cancels the run before it. The Docker image CI keeps
workflow_dispatch only: it is not needed on every merge for now, and can be
started from the Actions page or with gh workflow run on any ref. SOURCE_SHA is
github.sha: there is no pull_request event left to read a head sha from.

PyTorchSim #351, #352.
@YWHyuk
YWHyuk deleted the ci-on-branch-update branch October 23, 2026 03:03
student-Jungmin added a commit that referenced this pull request Oct 24, 2026
…ident mm, as v6e XLA runs it

v6e XLA runs a GEMM in two steps: a cross-program prefetch copies one operand whole into VMEM (the larger one
that fits, the smaller when the larger is the whole VMEM, none for a vector product), then the fusion walks the
output tiles streaming the other operand, K whole. The resident mm template
(pytorchsim/frontend/inductor/autotune/mm_resident.py) is that program: one program loads the held operand
whole, then walks the output tiles two at a time into two buffers, each stored through store_output so an
epilogue fuses per tile. Which operand and what tile is the compiler's copy_node.plan (one statement of it, read
here); the compiler emits that load as the kernel's copy node and its TOG reads the operand held.

Where the plan holds an operand the template is offered alone (it would never win a race on TOGSim cycles
against the K-split mm template, the exposed copy being the point), its one config annotated tile_source
"planned"; every other mm (declined by the plan, another dtype or out_dtype, another device) keeps the mm
template, the reason logged. This changes the default mm path for those shapes. NPUChoices (registration.py)
narrows the offer and marks the config template_record.PLANNED; its heuristic is in template_kernel_configs.py.

timing.simulate_standalone runs a kernel object's copy nodes before the kernel (also in a session) and reports
the sum, the parts beside it (kernel_cycles, copy_node_cycles); template_timing times through it. The kernel
object is format 9 (copy_nodes).

The compiler pin moves 2abb4a3 -> 6f88e2b, PSAL-POSTECH/PyTorchSim-Triton-Backend main with #347 (kernel format
9, contract copy_node, the copy node and the held TOG) and #351; TOGSim stays 5791272.

tests/system/test_copy_node.py: the offer and its declines, the config, relu fused into the one kernel,
inference_mode, eager and grad with values (functional mode), the timed copy node and the sum.

tests/system/test_select.py times a bmm: an mm the plan holds is planned, and nothing of it is timed.
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