Skip to content

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

Notifications You must be signed in to change notification settings

batra-mlp-lab/slurm_usage_utils

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages