usm sysinfo & usm check_py¶
Two tiny diagnostic commands.
usm sysinfo¶
Print a summary of the system, GPU, CUDA, MPI, and distributed-ML environment. Useful as the first thing to paste when reporting a bug.
Sections (depending on what's installed):
- OS / kernel / CPU / RAM
- NVIDIA:
nvidia-smiparse (driver, CUDA, every GPU) - CUDA toolkit:
nvcc --version - OpenMPI / Intel MPI versions
- NCCL version (from the loaded library if it can find it)
- Python +
torch.cudasummary ifpython -c 'import torch'succeeds
usm check_py¶
Print the active Python 3 and pip locations and versions.
Output:
Python3 version: Python 3.10.0
Pip location: /home/user/.pyenv/shims/pip
Pip version: pip 23.0.1 from /home/user/.pyenv/versions/3.10.16/lib/python3.10/site-packages/pip (python 3.10)
Handy when something is pyenv-shimmed, uv-shadowed, or
conda-activated and you can't remember which Python is "in front".