Clusterscope

0.0.32 · active · verified Thu Apr 16

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.

Common errors

Warnings

Install

Imports

Quickstart

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.

import clusterscope

# Get the detected cluster name
cluster_name = clusterscope.cluster()
print(f"Detected cluster: {cluster_name}")

# You can also use the CLI for more specific information:
# print("\nTry running these commands in your terminal:")
# print("  $ cscope gpus") # Show GPU information
# print("  $ cscope cpus") # Show CPU counts per node
# print("  $ cscope mem")  # Show memory information per node
# print("  $ cscope aws")  # Check if running on AWS and show NCCL settings

view raw JSON →