Skip to content

Instantly share code, notes, and snippets.

@raeidsaqur
Last active October 9, 2019 17:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raeidsaqur/8a58f514a5e47e761b535b78cd6270f1 to your computer and use it in GitHub Desktop.
Save raeidsaqur/8a58f514a5e47e761b535b78cd6270f1 to your computer and use it in GitHub Desktop.
Cluster Usage Helpful Bash Aliases

Add the following helper commands to your ~/.bash_profile to easily check cluster status

sq returns the status of jobs with respect to the $(PARTITION) machines.*

alias sq='squeue -o "%.18i %.9P %.8j %.8u %.6c %.8b %.8m %.8T %.10M %.9l %.6D %R" -A $(PARTITION_NAME)'

alias sinfo='sinfo -p all,$(PARTITION1), $(PARTITION2) -el -o "%15N %.6D %.9P %.7T %.4c %.13G %.8z %.6m %.6w %20E"'

alias sqk='squeue -u $(USERNAME)'

alias sb='sbatch -A $(PARTITION_NAME)'

alias gonode='salloc -A $(PARTITION_NAME)'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment