From af6972a619730beda2fc3bc46c37c7ba764faaca Mon Sep 17 00:00:00 2001 From: edoapra Date: Wed, 15 Nov 2023 08:20:51 -0800 Subject: [PATCH] convert BLAS_ENV to BLASOPT in compile_nwchem.sh --- travis/compile_nwchem.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/travis/compile_nwchem.sh b/travis/compile_nwchem.sh index caf077068a..a7f31d6281 100755 --- a/travis/compile_nwchem.sh +++ b/travis/compile_nwchem.sh @@ -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 "