Auto-configuration contract
Implementedv0.0.0
include/core/configure.hpp
This header exposes one job: write `.cuda-doctor.env` when a usable toolkit root can be found and the platform allows it.
Reference
Public surfacecpp
struct AutoConfigureResult {
Probe probe;
std::filesystem::path env_file;
bool changed;
};
AutoConfigureResult apply_cuda_env(const std::string& os, const std::filesystem::path& cwd);Related files
Core implementation
src/core/configure.cpp
Writes `.cuda-doctor.env` with `CUDA_HOME`, `PATH`, and `LD_LIBRARY_PATH` for the discovered toolkit root.
Command implementation
src/commands/doctor.cpp
Extends `check` with repo scanning, optional auto-configuration, auto-fix behavior, and next-step generation.