@@ -33,9 +33,19 @@ case "${with_intelmpi}" in
3333 echo " ==================== Finding Intel MPI from system paths ===================="
3434 check_command mpiexec " intelmpi" && MPIRUN=" $( realpath $( command -v mpiexec) ) "
3535 if [ " ${with_intel} " != " __DONTUSE__" ]; then
36- check_command mpiicc " intelmpi" && MPICC=" $( realpath $( command -v mpiicc) ) " || exit 1
37- check_command mpiicpc " intelmpi" && MPICXX=" $( realpath $( command -v mpiicpc) ) " || exit 1
38- check_command mpiifort " intelmpi" && MPIFC=" $( realpath $( command -v mpiifort) ) " || exit 1
36+ if [ " ${intelmpi_classic} " = " yes" ]; then
37+ check_command mpiicc " intelmpi" && MPICC=" $( realpath $( command -v mpiicc) ) " || exit 1
38+ check_command mpiicpc " intelmpi" && MPICXX=" $( realpath $( command -v mpiicpc) ) " || exit 1
39+ check_command mpiifort " intelmpi" && MPIFC=" $( realpath $( command -v mpiifort) ) " || exit 1
40+ else
41+ check_command mpiicx " intelmpi" && MPICC=" $( realpath $( command -v mpiicc) ) " || exit 1
42+ check_command mpiicpx " intelmpi" && MPICXX=" $( realpath $( command -v mpiicpc) ) " || exit 1
43+ if [ " ${with_ifx} " = " yes" ]; then
44+ check_command mpiifx " intelmpi" && MPIFC=" $( realpath $( command -v mpiifx) ) " || exit 1
45+ else
46+ check_command mpiifort " intelmpi" && MPIFC=" $( realpath $( command -v mpiifort) ) " || exit 1
47+ fi
48+ fi
3949 else
4050 echo " The use of Intel MPI is only supported with the Intel compiler"
4151 exit 1
@@ -59,9 +69,19 @@ case "${with_intelmpi}" in
5969 check_dir " ${pkg_install_dir} /include"
6070 check_command ${pkg_install_dir} /bin/mpiexec " intel" && MPIRUN=" ${pkg_install_dir} /bin/mpiexec" || exit 1
6171 if [ " ${with_intel} " != " __DONTUSE__" ]; then
62- check_command ${pkg_install_dir} /bin/mpiicc " intel" && MPICC=" ${pkg_install_dir} /bin/mpiicc" || exit 1
63- check_command ${pkg_install_dir} /bin/mpiicpc " intel" && MPICXX=" ${pkg_install_dir} /bin/mpiicpc" || exit 1
64- check_command ${pkg_install_dir} /bin/mpiifort " intel" && MPIFC=" ${pkg_install_dir} /bin/mpiifort" || exit 1
72+ if [ " ${intelmpi_classic} " = " yes" ]; then
73+ check_command ${pkg_install_dir} /bin/mpiicc " intel" && MPICC=" ${pkg_install_dir} /bin/mpiicc" || exit 1
74+ check_command ${pkg_install_dir} /bin/mpiicpc " intel" && MPICXX=" ${pkg_install_dir} /bin/mpiicpc" || exit 1
75+ check_command ${pkg_install_dir} /bin/mpiifort " intel" && MPIFC=" ${pkg_install_dir} /bin/mpiifort" || exit 1
76+ else
77+ check_command ${pkg_install_dir} /bin/mpiicx " intel" && MPICC=" ${pkg_install_dir} /bin/mpiicx" || exit 1
78+ check_command ${pkg_install_dir} /bin/mpiicpx " intel" && MPICXX=" ${pkg_install_dir} /bin/mpiicpx" || exit 1
79+ if [ " ${with_ifx} " = " yes" ]; then
80+ check_command ${pkg_install_dir} /bin/mpiifx " intel" && MPIFC=" ${pkg_install_dir} /bin/mpiifx" || exit 1
81+ else
82+ check_command ${pkg_install_dir} /bin/mpiifort " intel" && MPIFC=" ${pkg_install_dir} /bin/mpiifort" || exit 1
83+ fi
84+ fi
6585 else
6686 echo " The use of Intel MPI is only supported with the Intel compiler"
6787 exit 1
0 commit comments