Skip to content

Commit

Permalink
Improved mapping procs to node.
Browse files Browse the repository at this point in the history
  • Loading branch information
hfp committed May 21, 2024
1 parent 5006822 commit 1da6cda
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions config/cp2k/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,7 @@ if [ "${I_MPI_ROOT}" ]; then
else
HOSTS=$(sed 's/^\(..*[^,]\),*$/\1/' <<<"${HOSTS}" | sed -e "s/,/:${NC},/g" -e "s/$/:${NC}/")
MPIRUNFLAGS="${MPIRUNFLAGS} --report-bindings"
#MPIRUNFLAGS="${MPIRUNFLAGS} --map-by slot:PE=${NC}"
MPIRUNFLAGS="${MPIRUNFLAGS} --map-by ppr:${NRANKS}:node"
MPIRUNFLAGS="${MPIRUNFLAGS} --map-by ppr:$(((NRANKS+NS-1)/NS)):package:PE=$((NC/NRANKS))"
ENVFLAG=-x
ENVEQ='='
fi
Expand Down

0 comments on commit 1da6cda

Please sign in to comment.