cuda-doctor logo

Project compile helper

`cuda-doctor build`

build shields developers from hand-authoring the right flags for new hardware and from accidentally compiling against the wrong toolchain.

cuda-doctor build
v0.0.0

What build should abstract away

  • Selecting the correct toolkit and compiler path.
  • Choosing the right architecture target for the detected GPU.
  • Avoiding stale defaults that miss support for new hardware generations.
  • Failing early when the local machine cannot build for the requested workload.

Why it matters

The point of build is not to replace existing build systems. It is to reconcile them with the actual machine. For new NVIDIA hardware, the largest waste is often not a compiler crash, but a successful build that targeted the wrong architecture or toolkit.

Expected usage

Project-local buildbash
cd my-cuda-project
cuda-doctor build

Build with local reality

On newer GPUs, build should align flags and toolchain settings with the machine that will actually execute the binary.