Skip to content

Commit

Permalink
mpi scheduler: fix for prterun in uginfo for openmpi
Browse files Browse the repository at this point in the history
  • Loading branch information
Moritz921 committed Mar 10, 2024
1 parent aadabbd commit f1f891d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions scripts/shell/schedulers/mpi
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,9 @@ function UJS_Info
echo "ps aux | grep $USER | grep mpirun"
echo "JOBID STATE $(ps aux | sed -n 1p)"

ps aux | grep -E "$USER|$UID|${USER:0:8}+" | grep mpirun | while read -r line ; do
ps aux | grep -E "$USER|$UID|${USER:0:8}+" | grep "prterun\|mpirun" | grep -v grep | while read -r line ; do
jobid=$(echo $line | grep -Eo '\s[0-9]+\b' -o -m 1 -h -a | head -1 | cut -c2-)
if ! echo $line | grep -q "grep"; then
echo "$jobid RUNNING $line"
fi
echo "$jobid RUNNING $line"
done
}

Expand Down

0 comments on commit f1f891d

Please sign in to comment.