tweak BUILD_MPICH settings

This commit is contained in:
edoapra 2025-10-28 10:52:32 -07:00
parent 08f96f919c
commit e05512fa01
No known key found for this signature in database
GPG key ID: 9E6A0B70826967BA

View file

@ -29,16 +29,12 @@ echo NWCHEM_TOP is $NWCHEM_TOP
#TARBALL=https://github.com/nwchemgit/nwchem/releases/download/v7.0.0-beta1/nwchem-7.0.0-release.revision-5bcf0416-src.2019-11-01.tar.bz2
export USE_MPI=y
export MPICH_INTERFACE_HOSTNAME=localhost # fix for Mpich interface errors
if [[ "$FC" == "flang" ]]; then
if [[ "$FC" == *'flang'* ]] || [[ "$FC" == *'nvfortran'* ]]; then
export BUILD_MPICH=1
fi
if [[ "$FC" == "amdflang" ]]; then
export PATH=/opt/rocm/bin:$PATH
export LD_LIBRARY_PATH=/opt/rocm-"$rocm_version"/lib:/opt/rocm/llvm/lib:$LD_LIBRARY_PATH
export BUILD_MPICH=1
fi
if [[ "$FC" == 'flang-new-'* ]]; then
export BUILD_MPICH=1
fi
if [[ "$FC" == "nvfortran" ]]; then