Repository navigation
TOGSim: trace path only (drop the ONNX parser and STONNE), plus doc and device cleanup - #321
Merged
Merged
Conversation
docs/design/togsim_cpp_trace.md described the C++ trace producer as code in this repository (PyTorchSimFrontend.tog, extension_op.py, AsmParser); it is the compiler's now. Removes three pointers to the missing triton_backend/README.md, corrects where CycleSimulator lives, drops the LLVM 20 vs 23 seam the bridge docstrings described (the frontend holds no MLIR any more), and lists TOGSim's remaining externals.
The overrideable branch picked the MLIR FlashSDPA kernel, which the Triton route does not have; the device already disables flash and overrideable SDP at init, so the branch was never taken.
Every kernel now reaches TOGSim as a trace.so, and the STONNE sparse path that was the last user of the ONNX TOG is gone from the frontend. Removed TileGraphParser and SparseCore, the STONNE core type and its config keys, the sparse-instruction and stonne-tile flags, and the onnx, protobuf and stonneCore submodules with their CMake wiring. launchKernel and run_standalone now require the kernel's trace.so instead of falling back. The four stonne_* / heterogeneous configs used the removed core type.
student-Jungmin
force-pushed
the
togsim-trace-only
branch
from
October 8, 2026 08:25
46c647f to
563395f
Compare
Collaborator
Author
|
Rebased onto 2fd095a (the semaphore and spad commits landed after this opened). Conflicts were only in Instruction.h (kept the new wait-key accessors, dropped the sparse flags) and main.cc (trace-only launchKernel). On the new base: TOGSim builds; functional test_add, test_matmul, test_gqa, test_eager pass. Timing could not be rerun on this base: 2fd095a moves the producer ABI to 14, and PTB main (PYTORCHSIM_REF af32efa, ABI 13) still emits ABI 13 trace.cpp, so the trace fails to compile or load with or without this PR. It needs PTB's dma-semaphore pairing. On af32efa this PR's timing cycles matched the previous binary exactly. |
student-Jungmin
added a commit
to PSAL-POSTECH/PyTorchSim-Triton-Backend
that referenced
this pull request
Nov 10, 2026
…ps requiring onnx PSAL-POSTECH/PyTorchSim#321 removed TileGraphParser (the ONNX TOG), SparseCore, the STONNE core type and the onnx, protobuf and stonneCore submodules; nothing produced an ONNX TOG any more. 2fd095a..6ba6e62 holds only that, a docs cleanup and a device fix -- TOGSim ABI 14 on both sides. togsim.sh's `test -f TOGSim/extern/onnx/CMakeLists.txt` would now fail, and goes. Checked: setup/togsim.sh on a fresh prefix clones extern/ as booksim and ramulator2 only and builds Simulator; tests/run.py --timing on smoke, gather_index_computed_per_program and loop_store_waited_in_the_next_trip, 8/8, every line and TOGSim cycle count identical to 2fd095a.
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.
Three commits on top of
pytorchsim-triton-backend(af32efa).[Docs] Drop
docs/design/togsim_cpp_trace.md(it describes the trace producer as frontend code; it is the compiler's now), remove three pointers to the missingtriton_backend/README.md, correct whereCycleSimulatorlives, and drop the LLVM 20/23 seam the bridge docstrings described.[Device]
_fused_sdp_choicereturns math only. The overrideable branch picked the MLIR FlashSDPA kernel, which the Triton route does not have, and the device already disables flash/overrideable SDP at init.[TOGSim] Trace path only. Removes
TileGraphParser(ONNX TOG),SparseCoreand the STONNE core type with its config keys, the sparse-instruction / stonne-tile flags, and the onnx, protobuf and stonneCore submodules with their CMake wiring.launchKernelandrun_standalonerequire the kernel'strace.soinstead of falling back. The fourstonne_*/heterogeneous_c2configs used the removed core type. The frontend's STONNE path (extension_op.py,AsmParser/) was already gone, so nothing produced an ONNX TOG any more.Note for PTB:
setup/togsim.shchecksTOGSim/extern/onnx/CMakeLists.txt; that line has to go whenPYTORCHSIM_REFmoves past this.Verified
On a cleared cache, against PTB run-modes (c90c8d7, main + 2) with vcix-accelerator ba69dc8 (gem5 vcix-v0.3.0, Spike 9457402), TOGSim and the device rebuilt: