cuda-doctor logo

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.