Clusterscope is a Python library and CLI tool designed to extract information from High-Performance Computing (HPC) clusters and jobs, particularly those using Slurm. It provides functionalities for cluster detection, GPU/CPU/memory information, job requirement generation, and AWS environment detection. The library is actively maintained, with frequent releases, and is currently at version 0.0.32.
pip install clusterscopeVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to import the `clusterscope` library and use its `cluster()` function to identify the current HPC cluster name. It also hints at the available command-line interface (CLI) tools like `cscope gpus` for detailed hardware information.
Review code for `clusterscope` object instantiation and method calls within `__init__`. Ensure methods are called explicitly after object creation if they were implicitly called by the constructor in prior versions.
Ensure a properly configured and accessible Slurm environment on the head node. Verify that standard Slurm CLI commands (`sinfo`, `squeue`, `scontrol`, `srun`, `sbatch`) are functional and produce expected output. Consult Slurm documentation and cluster administrators for environment setup.
For unexpected results, particularly with `gpus`, `cpus`, or `aws` commands, check the clusterscope documentation or GitHub issues for known compatibility notes with specific cluster setups (e.g., different AWS instance types, Slurm versions, or NVIDIA driver configurations).
Install the package using pip: `pip install clusterscope`
Ensure your Python environment is activated (e.g., `source .venv/bin/activate`) or that pip's script directory is in your system's PATH. If using `pipx`, ensure `pipx ensurepath` has been run.
Verify that you are on a node with Slurm client tools installed and configured. Try running native Slurm commands like `sinfo`, `squeue` to confirm they work. Ensure necessary environment variables (e.g., `SLURM_CONF`) are set correctly.
No dependency data recorded yet.