Expand description
Cross-platform system detection (CPU, RAM, OS, Docker, GPU).
Structs§
Functions§
- arch_
dir_ name - Convert a
;-separated CUDA capability list into a variant directory name:"6.1;12.0"->"sm61-sm120","12.0"->"sm120". Shared by the libtorch and NCCL source builders so their variant paths cannot drift. - cpu_
model - cpu_
threads - detect_
gpus - 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 - os_
version - platform_
tag - Platform string for download URLs (e.g. “linux-x86_64”, “macos-arm64”).
- ram_
total_ gb