]> https://gitweb.dealii.org/ - candi.git/commitdiff
fix trilinos tpetra when using intel MKL 150/head
authorTimo Heister <timo.heister@gmail.com>
Tue, 23 Jun 2020 18:05:02 +0000 (14:05 -0400)
committerTimo Heister <timo.heister@gmail.com>
Tue, 7 Jul 2020 15:11:46 +0000 (11:11 -0400)
The choice to disable TPetra when using MKL lead to several downstream
Trilinos configuration errors. Instead, just disable the two
instantiations that are missing in MKL. Tested to work correctly with
Intel 19.0.5 and MKL.

deal.II-toolchain/packages/trilinos.package

index f633098576cde3dea9c4547b1f77a7ca0840f798..e4c0b3a4622c9e80f6c75dd56e7f2ae8d712ec5a 100644 (file)
@@ -102,14 +102,16 @@ if [ "${MKL}" = "ON" ]; then
             -D LAPACK_LIBRARY_DIRS:STRING=${MKL_DIR}"
     fi
 
-    # Trilinos will complain that MKL does not support HAVE_TEUCHOS_BLASFLOAT
-    cecho ${BAD} "trilinos: disabling Tpetra because you are using MKL"
+    # Trilinos will complain that MKL does not support HAVE_TEUCHOS_BLASFLOAT. See
+    # the discussion in https://github.com/dealii/candi/pull/92 for more details.
+    cecho ${INFO} "trilinos: disabling some Tpetra instantiations because you are using MKL"
     
     CONFOPTS=" \
         ${CONFOPTS} \
         -D BLAS_LIBRARY_NAMES:STRING='mkl_core;mkl_sequential' \
-        -D LAPACK_LIBRARY_NAMES:STRING=mkl_intel_lp64 \
-        -D Trilinos_ENABLE_Tpetra=OFF"
+        -D Tpetra_INST_FLOAT=OFF \
+        -D Tpetra_INST_COMPLEX_FLOAT=OFF \
+        -D LAPACK_LIBRARY_NAMES:STRING=mkl_intel_lp64"
 
 else
     if [ ! -z "${BLAS_LIB}" ]; then

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.