Expand description
Cross-platform system detection (CPU, RAM, OS, Docker, GPU).
Structs§
- GpuInfo
- One GPU’s identity, capability and VRAM.
Enums§
- GpuVendor
- Which GPU stack a device belongs to.
Functions§
- arch_
dir_ name - Convert a
;-separated arch list into a variant directory name. Shared by the libtorch and NCCL source builders so their variant paths cannot drift. - cpu_
model - cpu_
threads - detect_
gpus - Enumerate every installed GPU, ignoring visibility masks. Shorthand
for
surveywhen the caller does not need the findings. - docker_
version - escape_
json - Escape a string for embedding in a JSON string literal. Complete per
RFC 8259: backslash, quote, and every control char below 0x20. The
hand-rolled predecessors missed
\t/\r— one control character in a GPU name or mount path produced invalid JSON, which broke cluster probe fan-in. - has_
cargo - Check whether cargo is available on the host.
- has_
command - Check whether a command exists on PATH.
- is_
inside_ docker - nvidia_
driver_ version - NVIDIA driver version string, or
Nonewhennvidia-smiis absent or errors. - os_
version - platform_
tag - Platform string for download URLs (e.g. “linux-x86_64”, “macos-arm64”).
- ram_
total_ gb