Skip to content

Commit 05b0095

Browse files
committed
fix openmpi switch
1 parent 4c260bb commit 05b0095

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

toolchain/install_abacus_toolchain.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -504,15 +504,15 @@ while [ $# -ge 1 ]; do
504504
export MPI_MODE=mpich
505505
fi
506506
;;
507+
--with-4th-openmpi*)
508+
openmpi_4th=$(read_with "${1}" "no") # default new openmpi
509+
;;
507510
--with-openmpi*)
508511
with_openmpi=$(read_with "${1}")
509512
if [ "${with_openmpi}" != "__DONTUSE__" ]; then
510513
export MPI_MODE=openmpi
511514
fi
512515
;;
513-
--with-openmpi-4th)
514-
openmpi_4th=$(read_with "${1}" "no") # default new openmpi
515-
;;
516516
--with-intelmpi*)
517517
with_intelmpi=$(read_with "${1}" "__SYSTEM__")
518518
if [ "${with_intelmpi}" != "__DONTUSE__" ]; then
@@ -528,7 +528,7 @@ while [ $# -ge 1 ]; do
528528
--with-intel-mpi-clas*)
529529
intelmpi_classic=$(read_with "${1}" "no") # default new intel mpi compiler
530530
;;
531-
--with-intel*)
531+
--with-intel*) # must be read after items above
532532
with_intel=$(read_with "${1}" "__SYSTEM__")
533533
;;
534534
--with-ifx*)

toolchain/toolchain_gnu.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@
2626
--with-libnpy=no \
2727
--with-libri=no \
2828
--with-libcomm=no \
29-
--with-openmpi-4th=no \
29+
--with-4th-openmpi=no \
3030
| tee compile.log
31-
# if you want to use openmpi-version4: set --with-openmpi-4th=yes
31+
# if you want to use openmpi-version4: set --with-4th-openmpi=yes

0 commit comments

Comments
 (0)