Skip to content

Commit 57cf56f

Browse files
committed
mpi-1.0 PG: use mpich-default on powerpc
1 parent a1f2cda commit 57cf56f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

_resources/port1.0/group/mpi-1.0.tcl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,17 @@ foreach mpiname [array names mpidb *,variant] {
5656
unset mpiname
5757

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

0 commit comments

Comments
 (0)