Skip to content

Commit

Permalink
Merge pull request #1016 from edoapra/compilers-august-2024
Browse files Browse the repository at this point in the history
MPICH update
  • Loading branch information
nwchemgit authored Sep 6, 2024
2 parents a66de8b + 59e9525 commit 660d64a
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 11 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/github_actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,15 @@ jobs:
cc: gcc
blas: "brew_openblas"
blas_size: 4
- os: macos-latest
experimental: true
mpi_impl: openmpi
armci_network: MPI-TS
nwchem_modules: "nwdft driver solvation"
fc: gfortran
cc: gcc
blas: "brew_openblas"
blas_size: 4
- os: macos-14
experimental: true
mpi_impl: openmpi
Expand All @@ -432,6 +441,15 @@ jobs:
blas: "brew_openblas"
blas_size: 4
xcode_version: 15.0.1
- os: macos-latest
experimental: true
mpi_impl: build_mpich
armci_network: MPI-TS
nwchem_modules: "nwdft driver solvation"
fc: gfortran-14
cc: gcc-14
blas: "brew_openblas"
blas_size: 4
fail-fast: false
env:
MPI_IMPL: ${{ matrix.mpi_impl }}
Expand Down
10 changes: 1 addition & 9 deletions src/libext/mpich/build_mpich.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ source ../libext_utils/get_tgz.sh
rm -rf mpich mpich-?.?.?
#VERSION=3.4.2
#VERSION=4.0.2
VERSION=4.1.2
VERSION=4.2.2
#curl -L http://www.mpich.org/static/downloads/${VERSION}/mpich-${VERSION}.tar.gz -o mpich.tgz
#curl -L https://github.com/pmodels/mpich/releases/download/v${VERSION}/mpich-${VERSION}.tar.gz -o mpich.tgz
get_tgz https://github.com/pmodels/mpich/releases/download/v${VERSION}/mpich-${VERSION}.tar.gz mpich.tgz
Expand All @@ -21,14 +21,6 @@ fi
echo FC is $FC
FC_EXTRA=$(${NWCHEM_TOP}/src/config/strip_compiler.sh ${FC})
echo FC_EXTRA is $FC_EXTRA
if [[ ${FC_EXTRA} == gfortran ]] ; then
GNUMAJOR=`$FC -dM -E - < /dev/null 2> /dev/null | grep __GNUC__ |cut -c18-`
echo GNUMAJOR is $GNUMAJOR
if [[ $GNUMAJOR -ge 10 ]]; then
export FFLAGS=" -fallow-argument-mismatch "
export FCFLAGS=" -fallow-argument-mismatch "
fi
fi
if [[ ${FC_EXTRA} == nvfortran ]] ; then
export FFLAGS+=" -fPIC "
export FCFLAGS+=" -fPIC "
Expand Down
9 changes: 7 additions & 2 deletions travis/build_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,13 @@ fi
$MYSUDO xcode-select -s /Applications/Xcode_"$XCODE_VERSION".app/Contents/Developer
fi
# HOMEBREW_NO_AUTO_UPDATE=1 brew cask uninstall oclint || true
# HOMEBREW_NO_INSTALL_CLEANUP=1 HOMEBREW_NO_AUTO_UPDATE=1 brew install gcc "$MPI_IMPL" openblas python3 ||true
HOMEBREW_NO_INSTALL_CLEANUP=1 HOMEBREW_NO_AUTO_UPDATE=1 brew reinstall gcc "$MPI_IMPL" gsed grep automake autoconf ||true
# HOMEBREW_NO_INSTALL_CLEANUP=1 HOMEBREW_NO_AUTO_UPDATE=1 brew install gcc "$MPI_IMPL" openblas python3 ||true
if [[ "$MPI_IMPL" == "build_mpich" ]]; then
MPI_FORMULA=" "
else
MPI_FORMULA="$MPI_IMPL"
fi
HOMEBREW_NO_INSTALL_CLEANUP=1 HOMEBREW_NO_AUTO_UPDATE=1 brew reinstall gcc $MPI_FORMULA gsed grep automake autoconf ||true
if [[ "$FC" != "gfortran" ]] && [[ "$FC" == "gfortran*" ]]; then
#install non default gfortran, ie gfortran-9
#get version
Expand Down

0 comments on commit 660d64a

Please sign in to comment.