Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 1.01 KB

README.md

File metadata and controls

39 lines (30 loc) · 1.01 KB

slurm_usage_utils

Helpful functions for tracking GPU/CPU usage in SLURM managed clusters.

Installation

Clone the repository to your home directory or otherwise.

Add the following lines to your .bashrc, change the location of the .gpus_users.bashrc file based on where you cloned the repository. The paths to each .awk file in gpus_users.bashrc will also have to be modified if a different clone directory is chosen.

if [ -f ~/slurm_usage_utils/gpus_users.bashrc ]; then
    . ~/slurm_usage_utils/gpus_users.bashrc
fi

In the following files, change the @include mycolors.awk line so that it has the absolute path of your mycolors.awk file from this repository:

lab_usage.awk
lab_usage_qos.awk
lab_usage_verbose.awk
node_usage.awk
gpu_types_usage.awk
gpu_types_usage_verbose.awk

Reload your .bashrc with source ~/.bashrc.

Usage

The following commands are currently supported

# Summary of GPU/CPU usage
gpus_users
gpus_users -q
gpus_users -v

# Summary of node usage
node_usage