]> https://gitweb.dealii.org/ - candi.git/commitdiff
export BLAS_LIB, fix petsc 96/head
authorTimo Heister <timo.heister@gmail.com>
Fri, 5 Oct 2018 16:25:43 +0000 (18:25 +0200)
committerTimo Heister <timo.heister@gmail.com>
Fri, 5 Oct 2018 16:25:43 +0000 (18:25 +0200)
deal.II-toolchain/packages/openblas.package
deal.II-toolchain/packages/petsc.package

index ee3837dd747bcbaa0a038b05fba420dda735c0eb..6623c1d49234380660813f0ab832772ceb69a109 100644 (file)
@@ -23,6 +23,7 @@ package_specific_build () {
 package_specific_register () {
     export LAPACK_DIR=${INSTALL_PATH}/lib
     export BLAS_DIR=${INSTALL_PATH}/lib
+    export BLAS_LIB=${INSTALL_PATH}/lib/libopenblas.so
     # older cmake (for example 3.5) does not detect openblas by default so
     # we force detection by adding to the deal.II configure line:
     export DEAL_CONFOPTS="-D LAPACK_FOUND=true -D LAPACK_LIBRARIES=${INSTALL_PATH}/lib/libopenblas.so ${DEAL_CONFOPTS}"
@@ -35,5 +36,6 @@ package_specific_conf () {
     echo "
 export LAPACK_DIR=${INSTALL_PATH}/lib
 export BLAS_DIR=${INSTALL_PATH}/lib
+export BLAS_LIB=${INSTALL_PATH}/lib/libopenblas.so
 " >> $CONFIG_FILE
 }
index 2fcb24ac80e4ed45bb8bab9d11d4fc2d05686d39..05c55829612c50bd4c3135513261b37984c5f084 100644 (file)
@@ -65,6 +65,11 @@ if [ ! -z "${MKL_DIR}" ]; then
     cecho ${INFO} "petsc: configuration with MKL"
     cecho ${INFO} "petsc: configuration with blas-lapack-dir=${MKL_DIR}"
     CONFOPTS="${CONFOPTS} --with-blas-lapack-dir=${MKL_DIR}"
+else
+    if [ ! -z "${BLAS_LIB}" ]; then
+        cecho ${INFO} "petsc: configuration with --with-blas-lapack-lib=${BLAS_LIB}"
+        CONFOPTS="${CONFOPTS} --with-blas-lapack-lib=${BLAS_LIB}"
+    fi
 fi
 
 # Add ParMETIS, if present

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.