Host platform detection
Implementedv0.0.0
src/core/platform.cpp
This file turns compile-time macros into runtime strings like `linux`, `windows`, `macos`, `x86_64`, and `arm64`. It also hard-codes macOS as unsupported because NVIDIA CUDA runtime support is not available there.
Behavior
- Maps platform macros to human-readable OS names.
- Maps architecture macros to `arm64` or `x86_64` when possible.
- Marks macOS as unsupported and emits a probe message explaining that it is not a CUDA runtime target.
Caveats
The file is intentionally opinionated: macOS is not treated as merely missing CUDA packages, but as a platform that should not be considered a real CUDA runtime target in the first place.
Related files
Core contract
include/core/platform.hpp
Defines the platform detection result returned by the host probe.
Command implementation
src/commands/check.cpp
Runs the platform, driver, CUDA, and GPU probes and summarizes them into a report.
Command implementation
src/commands/doctor.cpp
Extends `check` with repo scanning, optional auto-configuration, auto-fix behavior, and next-step generation.