openmixer — generated API reference
    Preparing search index...

    Interface GpuDetector

    The pair a consumer binds to. Injecting this seam (rather than importing the functions) keeps a package testable against a fake, and lets a caller that already knows the machine — a headless CI runner, a deliberately CPU-only deployment — answer without probing.

    interface GpuDetector {
        detectGPUs(): DetectedGpu[];
        selectGPU(gpus: DetectedGpu[], preference?: string): DetectedGpu | null;
    }
    Index