mirror of
https://github.com/nwchemgit/nwchem.git
synced 2026-07-28 14:15:30 -04:00
convert BLAS_ENV to BLASOPT in compile_nwchem.sh
This commit is contained in:
parent
271dc07a6b
commit
af6972a619
1 changed files with 16 additions and 0 deletions
|
|
@ -67,6 +67,22 @@ else
|
|||
fi
|
||||
fi
|
||||
fi
|
||||
if [[ "$BLAS_ENV" == lib*openblas* ]] || [[ "$BLAS_ENV" == "brew_openblas" ]]; then
|
||||
if [[ "$BLAS_ENV" == "*openblas64*" ]]; then
|
||||
myob="openblas64"
|
||||
else
|
||||
myob="openblas"
|
||||
fi
|
||||
if [[ "$BLAS_ENV" == "brew_openblas" ]]; then
|
||||
if [ -z "$HOMEBREW_PREFIX" ] ; then
|
||||
HOMEBREW_PREFIX=/usr/local
|
||||
fi
|
||||
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$HOMEBREW_PREFIX/opt/openblas/lib/pkgconfig
|
||||
fi
|
||||
export BLASOPT=$(pkg-config --libs $myob)
|
||||
export LAPACK_LIB=$BLASOPT
|
||||
echo "BLASOPT and LAPACK_LIB are" $BLASOPT $LAPACK_LIB
|
||||
fi
|
||||
#check linear algebra
|
||||
if [[ -z "$BLASOPT" ]] && [[ -z "$BUILD_OPENBLAS" ]] && [[ -z "$USE_INTERNALBLAS" ]] ; then
|
||||
echo " no existing BLAS settings, defaulting to BUILD_OPENBLAS=y "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue