Skip to content

[Doc] Add CLAUDE.md project reference for AI assistants#225

Merged
psalwonhyuk merged 1 commit into
developfrom
docs/claude-md-reference
May 21, 2026
Merged

[Doc] Add CLAUDE.md project reference for AI assistants#225
psalwonhyuk merged 1 commit into
developfrom
docs/claude-md-reference

Conversation

@YWHyuk
Copy link
Copy Markdown
Collaborator

@YWHyuk YWHyuk commented May 21, 2026

Summary

  • Add a top-level CLAUDE.md aimed at AI coding assistants (Claude Code, Cursor, etc.) working in this repo
  • Covers the three-simulator pipeline (Gem5 → Spike → TOGSim), directory map, test entry points, key env vars and YAML knobs, multi-tenant API contract, build steps, and known gotchas
  • Complements README.md with a denser navigation cheat-sheet rather than user-facing docs

Comment thread CLAUDE.md Outdated
- **Adding a new op (Inductor lowering):** `PyTorchSimFrontend/mlir/mlir_ops.py`, `mlir_lowering.py`, plus a new `mlir_<op>_template.py` if it needs its own MLIR template. Decomposition rules: `mlir_decomposition.py`. Scheduling: `mlir_scheduling.py`. Autotune: `mlir_autotune.py`.
- **Adding a PyTorch device op:** `PyTorchSimDevice/csrc/aten/native/*` (Minimal/Extra split mirrors `torch_openreg`).
- **TOGSim hardware model changes:** `TOGSim/src/{Core,Dram,Interconnect,L2Cache,Tile,TileGraph}.cc` + matching `include/*.h`.
- **TOG generation (ONNX→TOG):** `AsmParser/tog_generator.py`.
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It not true. raw_tog.py is converted to onnx format (which is a TOG format)

Comment thread CLAUDE.md Outdated

## Gotchas / things I've already learned

- The repo expects `python` to be a Python 3.10+ binary with `torch==2.2.0`. The frontend extends PyTorch 2 Inductor; newer PyTorch is not yet supported (see "Future Works" in README).
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not 2.2.0 2.8.0 check this out

YWHyuk added a commit that referenced this pull request May 21, 2026
- TOG generation: clarify that tog_generator.py builds the raw graph
  and onnx_utility serializes it to ONNX (which IS the on-disk TOG
  format), rather than the incorrect "ONNX -> TOG" direction.
- PyTorch pin: 2.8.0, not 2.2.0; drop the stale "newer not supported" line.
- Remove the Paper/cite section.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Drop-in reference for Claude Code (and similar AI tools) covering the
three-simulator pipeline (Gem5 -> Spike -> TOGSim), directory map,
test entry points, key env vars and YAML knobs, multi-tenant API
contract, build steps, and known gotchas. Complements README.md
with a denser cheat-sheet aimed at code navigation.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@YWHyuk YWHyuk force-pushed the docs/claude-md-reference branch from aad8ed3 to 9c4ed17 Compare May 21, 2026 04:45
@psalwonhyuk psalwonhyuk merged commit a2a1ac2 into develop May 21, 2026
2 checks passed
@psalwonhyuk psalwonhyuk deleted the docs/claude-md-reference branch May 21, 2026 04:51
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.

2 participants