Cray-MPICH
Hi,
I am installing OpenFOAM v2012 on an ARM machine. It seems like WM_MPLIB by default is SYSTEMOPENMPI, but we are changing it to CRAY-MPICH in prefs.sh. However I have noticed a problem.
CRAY-MPICH refers to wmake/rules/General/mplibCRAY-MPICH, which I think refers to wmake/rules/General/mplibMPICH
mplibMPICH contains an error I think:
PFLAGS = -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX
PINC = -isystem $(MPI_ARCH_PATH)/include
PLIBS = -L$(MPI_ARCH_PATH)/lib$(WM_COMPILER_LIB_ARCH) -L$(MPI_ARCH_PATH)/lib -lmpi -lrt
It should be at this:
PFLAGS = -DMPICH_SKIP_MPICXX
PINC = -isystem $(MPI_ARCH_PATH)/include
PLIBS = -L$(MPI_ARCH_PATH)/lib$(WM_COMPILER_LIB_ARCH) -L$(MPI_ARCH_PATH)/lib -lmpich -lrt
I think the DOMPI_SKIP_MPICXX flag means MPI should not include C++ headers, but we are not using MPI so I guess I don't need that either!
Kind regards,
Andy
P.S. In version 1812 it was correct like this:
PFLAGS = -DMPICH_SKIP_MPICXX
PINC = -isystem $(MPI_ARCH_PATH)/include
PLIBS = -L$(MPI_ARCH_PATH)/lib$(WM_COMPILER_LIB_ARCH) -L$(MPI_ARCH_PATH)/lib -lmpich -lrt
Edited by Andrew Roberts