Created
June 3, 2017 07:38
-
-
Save weijianwen/43a6ddfc4515de0fd46c53e732136365 to your computer and use it in GitHub Desktop.
SLURM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
squeue --state=running --format="%.16u %C" | grep -v CPUS | awk '{sum += $2} END {print sum}' | |
squeue --state=running --format="%.16u %C" | grep -v CPUS | sort | awk '{sum[$1] += $2} END {for (i in sum) print i, sum[i]}' | sort -nk2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment