Skip to content

Commit

Permalink
mpi-1.0 PG: use mpich-default on powerpc
Browse files Browse the repository at this point in the history
  • Loading branch information
barracuda156 committed Dec 31, 2024
1 parent a1f2cda commit 57cf56f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions _resources/port1.0/group/mpi-1.0.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,17 @@ foreach mpiname [array names mpidb *,variant] {
unset mpiname

proc mpi.get_default_mpi_compiler {} {
global os.arch
# No MPI variant has been selected.
# Attempt to select the MPI port that is consistent with the compiler being used.
lassign [split [option configure.compiler] "-"] ismacports type ver
if {${ismacports} ne "macports"} {
# system compiler is being used, so use {mpich,openmpi}-default
return {mp default}
} elseif {${os.arch} eq "powerpc"} {
# MPI never uses Xcode gcc and there is no clang.
# Avoid unnecessary zoo of mpich versions.
return {mp default}
} else {
# macports compiler is being used, so use the corresponding MPI port
set mpiver [join [split ${ver} "."] ""]
Expand Down

0 comments on commit 57cf56f

Please sign in to comment.