Repository navigation
[CI] The gate and the Triton route run when pytorchsim-triton-backend moves, not per pull request - #351
Merged
Conversation
… 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
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.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Docker image CIandTriton codegen routeno longer start onpull_request. They start when thepytorchsim-triton-backendbranch moves (a merge or a push) and onworkflow_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_requesttomaster/develop/pytorchsim-triton-backendbecomespushtopytorchsim-triton-backend.pytorchsim_triton_backend.yml: the same; itspathsfilter is kept.concurrencygroup per ref withcancel-in-progress, so a newer push cancels the run of the one before it.SOURCE_SHAand the three test image tags aregithub.sha; there is nopull_requestevent left to read a head sha from.What to know
gh workflow run "Docker image CI" --ref <branch>.masteranddevelophave their own copies of these files and are not changed here. A pull request into them still starts their workflows.tag_release.ymlandwiki.ymlare untouched.Verified
Both files load as YAML with the triggers above. No run was started to try them.