Skip to content

[nfc] Add ttsim VM-based setup scripts and ttsim binaries#226

Draft
brnorris03 wants to merge 2 commits intomainfrom
bnorris/ttsim-setup
Draft

[nfc] Add ttsim VM-based setup scripts and ttsim binaries#226
brnorris03 wants to merge 2 commits intomainfrom
bnorris/ttsim-setup

Conversation

@brnorris03
Copy link
Contributor

@brnorris03 brnorris03 commented Jan 12, 2026

  • Add Lima VM configuration template and provisioning scripts for testing tt-lang on Linux (from macOS)
  • Add toolchain build script (build-toolchain.sh) for building LLVM/MLIR from source
  • Add TTLANG_BUILD_TTMLIR_TOOLCHAIN CMake option to build toolchain during FetchContent
  • Configure VM with clang-17 (matching toolchain LLVM 17), GCC 13 (C++20 ranges), and required dependencies
  • Add GitHub Actions workflow for automated VM-based testing
  • Update CMakeLists.txt to integrate with external tt-mlir builds
  • Disable unused tt-mlir features (alchemist, explorer) to reduce build time
  • Add documentation for VM setup and provisioning workflow

Closes #111

…ld support

- Add Lima VM configuration template and provisioning scripts for testing tt-lang on Linux (from macOS)
- Add toolchain build script (build-toolchain.sh) for building LLVM/MLIR from source
- Add TTLANG_BUILD_TTMLIR_TOOLCHAIN CMake option to build toolchain during FetchContent
- Configure VM with clang-17 (matching toolchain LLVM 17), GCC 13 (C++20 ranges), and required dependencies
- Add GitHub Actions workflow for automated VM-based testing
- Update CMakeLists.txt to integrate with external tt-mlir builds
- Disable unused tt-mlir features (alchemist, explorer) to reduce build time
- Add documentation for VM setup and provisioning workflow
@zoecarver
Copy link
Contributor

This is fantastic. LGTM after skimming but didn't do an in depth review.

set -e

VM_NAME="ttlang-ttsim"
TTLANG_DIR="/home/bnorris.linux/tt/tt-lang"
Copy link
Contributor

Choose a reason for hiding this comment

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

will this need to be user independent?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, definitely, need to make that pick up the environment variable and default properly (I didn't pay enough attention when I created this after I got tired of the long lima commands).

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.

☂️ [Compiler] TT-sim support

3 participants