Skip to content

Instantly share code, notes, and snippets.

@yzchen
Last active April 18, 2019 10:12
Show Gist options
  • Save yzchen/4b33b02aa7f01a7c0e57954efdd3cfc3 to your computer and use it in GitHub Desktop.
Save yzchen/4b33b02aa7f01a7c0e57954efdd3cfc3 to your computer and use it in GitHub Desktop.
How many skylake nodes are used on Ibex
sinfo --partition=batch --format="%n %f" | grep "intel_gold_6148" | wc -l
squeue | grep "cn60" | awk '{print $8}' | while IFS=',' read -ra NODE; do for i in "${NODE[@]}"; do echo $i; done; done | sort | uniq | wc -l
sinfo --partition=batch --format="%n %f" | grep "p100"
sinfo --partition=batch --format="%n %f" | grep "gpu_v100"
# p100 gpu nodes
watch -n 1 'squeue | grep "dgpu50"'
# v100 gpu nodes
watch -n 1 'squeue | grep "gpu601-0"'
# skylake cpu nodes
watch -n 1 'squeue | egrep -e "cn603-|cn605-"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment