cuda-doctor logo

Diagnosis plus repair orchestration

Implementedv0.0.0

src/commands/doctor.cpp

This file is the current orchestration heart of the native tool. It starts with `run_check()`, layers in repo scanning or repair, appends guided next steps based on probe statuses, and recalculates the final status across the enriched probe list.

Behavior

  • Starts from the read-only `check` report.
  • When `auto_configure` is false, appends a repo scan probe.
  • When `auto_configure` is true, appends configuration and repo auto-fix probes instead.
  • Adds targeted next steps depending on which probes are missing or unhealthy.
  • Special-cases macOS as unsupported and points the user toward Linux, Windows, or WSL2 for real CUDA execution.

Why it matters

This file is where the project’s product promise first starts to become real. It does more than report raw probe results: it translates them into operator guidance and repair behavior.

Current limit

The auto-repair path currently focuses on environment export files and repo manifest fixes. It does not yet patch full driver, toolkit, framework, or validation failures.