Skip to content

Commit

Permalink
update the sinfo command
Browse files Browse the repository at this point in the history
Using output formatting (-o "%N") speeds this up considerably
  • Loading branch information
akhanf authored and pvandyken committed Sep 28, 2024
1 parent 0e5bbc4 commit ab9a36b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kslurm/bin/bash.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This represents a fairly significant load time for shells. A clever way of caching would be ideal
if [[ -z $KSLURM_COMPUTE_NODES ]]; then
export KSLURM_COMPUTE_NODES=$(sinfo -N -h | awk '{print $1'} | sort -u)
export KSLURM_COMPUTE_NODES=$(sinfo -N -h -o "%N" | uniq)
fi

pip () {
Expand Down

0 comments on commit ab9a36b

Please sign in to comment.