Files
rustytorch/docs/archive/legacy/phase0.md
T
2026-03-04 00:08:42 +00:00

86 lines
2.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
RustyTorch++ — Phase 0 Plan (Foundation, Vision & Agent Hooks)
Phase 0 update (paths & repo layout): We will start by creating the directory tree under /home/osobh/projects/rustytorch, linking to the GPUnative compiler /home/osobh/projects/rust/rustg (RTX 5090 sm_120) and preparing deployment references to Stratoswarm at /home/osobh/projects/stratoswarm. Darwin integration will be deferred to a later phase.
Local path anchors
RUSTYTORCH_ROOT: /home/osobh/projects/rustytorch
RUSTG_COMPILER: /home/osobh/projects/rust/rustg (GPU codegen backend; default arch sm_120)
STRATOSWARM_ROOT: /home/osobh/projects/stratoswarm
Initial directory tree
/home/osobh/projects/rustytorch/
├── Cargo.toml # workspace; path deps to rustg
├── rust-toolchain.toml
├── crates/
│ ├── rtx-compiler/
│ ├── rtx-runtime/
│ ├── rtx-kernel/
│ ├── rtx-profiler/
│ ├── rtx-bench/
│ └── rtx-governance/
├── apps/
│ ├── webniterface/
│ └── mobile/
├── deploy/
│ └── stratoswarm/ # manifests referencing STRATOSWARM_ROOT (Phase 1+)
├── agents/
├── ci/ # or .github/
└── docs/
Cargo path dependencies (workspace root Cargo.toml):
[workspace.dependencies]
rustg = { path = "../rust/rustg" }
Kernel cache: target/kernel_cache/ (versioned; sm_120 by default)
Phase 0 Goals
Repository & Workspace Setup
Create all required directories and Cargo.toml workspace configuration.
Link rustg compiler as a path dependency.
Set up rust-toolchain.toml with required Rust version and targets.
Baseline Build & Compiler Integration
Compile minimal crate with rustg to confirm RTX 5090 sm_120 compatibility.
Validate that GPU kernel compilation artifacts are cached in target/kernel_cache/.
Agent Environment Bootstrapping
Install and register all Phase 0 MCP subagents (Rust Engineer, Performance Engineer, DevOps Engineer, etc.).
Configure toolchains for code linting, formatting, performance profiling, and testing.
Documentation & Onboarding
Create docs/phase0.md to describe architecture vision, repo structure, and initial build steps.
Document rustg integration process and GPU architecture target settings.
CI/CD Bootstrap
Add CI workflows to lint, build, and run basic GPU smoke tests.
Configure caching for kernel builds to speed up iterative development.
Phase 0 Completion Criteria
Repository tree and workspace fully set up.
rustg successfully compiles minimal GPU kernel for RTX 5090.
All core agents installed and functional.
Documentation ready for Phase 1 onboarding.
CI pipeline passing initial build and test checks.