Skip to main content

Module platform

Module platform 

Source
Expand description

Platform module — hardware detection, environment management, and OS abstraction.

This module provides platform-specific functionality including:

  • GPU detection with fallback chain (rocminfo → lspci → sysfs)
  • GPU architecture correction from marketing names
  • ROCm version detection and path search
  • Linux distribution detection and package manager identification
  • Environment normalization, home directory resolution, Python interpreter discovery
  • Component registry, installed component detection, and version querying
  • Linux-specific platform operations
  • Windows build support, WSL2 detection, and backend routing
  • Windows ↔ WSL2 path translation bridge
  • Service launch surfaces with localhost-only binding
  • Windows-native control shell using shared Rust contracts

§Platform-Specific Modules

  • linux — Linux-native GPU/ROCm detection (Unix-only internals, cfg-gated)
  • windows — Backend routing model (cross-platform)
  • wsl — WSL2 detection, health checks, provisioning guidance (cross-platform)
  • path_bridge — Windows ↔ WSL2 path translation (cross-platform)
  • service — Service launch with localhost-only binding and health endpoints
  • control_shell — Windows-native control shell using shared Rust contracts

Re-exports§

pub use control_shell::*;
pub use detection::*;
pub use environment::*;
pub use linux::*;
pub use path_bridge::*;
pub use registry::*;
pub use service::*;
pub use windows::*;
pub use wsl::*;

Modules§

control_shell
Windows-native control shell using shared Rust contracts.
detection
Linux distribution detection and package manager identification.
environment
Environment normalization, home directory resolution, and Python interpreter discovery.
linux
Linux-specific platform detection: GPU, ROCm, and hardware introspection.
path_bridge
Windows ↔ WSL2 path translation bridge.
registry
Component registry and installed component detection.
service
Service launch surfaces with local-only endpoint exposure.
windows
Windows-native platform support.
wsl
WSL2 detection, health checks, and provisioning guidance.