Created
June 3, 2017 07:38
-
-
Save weijianwen/58ae768315b0a32c44dd7cfed9418f66 to your computer and use it in GitHub Desktop.
SLURM
This file contains 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