diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7a9037fe..d130a511 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -128,6 +128,6 @@ jobs: - name: Build Rayleigh run: | cd "$GITHUB_WORKSPACE" - ./configure --openblas --FC=mpifort --FFLAGS_DBG='-O0 -g -fbounds-check -ffpe-trap=invalid,zero,overflow -fbacktrace -ffixed-line-length-132 -Wall' + ./configure --openblas --with-blas=$CONDA_PREFIX --with-fftw=$CONDA_PREFIX --FC=mpifort --FFLAGS_DBG='-O0 -g -fbounds-check -ffpe-trap=invalid,zero,overflow -fbacktrace -ffixed-line-length-132 -Wall' make -j make install diff --git a/configure b/configure index 0c52dd45..bc54cc3f 100755 --- a/configure +++ b/configure @@ -474,6 +474,25 @@ do esac done + +if [ "$USE_MKL" == "TRUE" ] + then + echo "" +elif [[ ! -z $FFTWROOT && ! -z $BLASROOT && ! -z $LPROOT ]]; + then + echo "" +elif [[ ! -z $FFTWROOT && ! -z $BLASROOT && "$USEOPENBLAS" == "TRUE" ]] + then + echo "" +else + echo "Configuration Error: One of the three combinations must be satisfied" + echo " 1)The location of MKL is specified." + echo " 2)The location of fftw, blas, and lapack is specified." + echo " 3)The location of fftw, blas, and openblas is specified." + exit 1 +fi + + echo "" echo " -----------------------------------------------------------------------------" VERSION_FILE="VERSION"