]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Require Trilinos 13.2 if it includes Kokkos
authorDaniel Arndt <arndtd@ornl.gov>
Fri, 30 Dec 2022 09:48:46 +0000 (10:48 +0100)
committerDaniel Arndt <arndtd@ornl.gov>
Fri, 30 Dec 2022 10:08:17 +0000 (11:08 +0100)
cmake/configure/configure_20_trilinos.cmake
doc/external-libs/trilinos.html
doc/news/changes/20221230DanielArndt [new file with mode: 0644]

index ea317beb7a39ffc116ec2d2dfec8017e143eb00d..38557e7c889646d3b3149fa4b00a57788273ed36 100644 (file)
@@ -185,6 +185,24 @@ macro(feature_trilinos_find_external var)
         set(${var} FALSE)
       endif()
 
+      #
+      # We require at least Trilinos 13.2
+      #
+      if(TRILINOS_VERSION VERSION_LESS 13.2)
+        message(STATUS "Could not find a sufficient Trilinos installation: "
+          "deal.II requires at least version 13.2 if the Trilinos installation includes Kokkos, "
+          "but version ${TRILINOS_VERSION} was found."
+          )
+        set(TRILINOS_ADDITIONAL_ERROR_STRING
+          ${TRILINOS_ADDITIONAL_ERROR_STRING}
+          "The Trilinos installation (found at \"${TRILINOS_DIR}\")\n"
+          "with version ${TRILINOS_VERSION} is too old.\n"
+          "deal.II requires at least version 13.2 if the Trilinos installation includes Kokkos.\n\n"
+          )
+        set(${var} FALSE)
+      endif()
+
+
       if(Kokkos_ENABLE_CUDA)
         # We need to disable SIMD vectorization for CUDA device code.
         # Otherwise, nvcc compilers from version 9 on will emit an error message like:
@@ -267,7 +285,7 @@ macro(feature_trilinos_find_external var)
         main()
         {
           Epetra_CrsMatrix *matrix;
-          const auto teuchos_wrapped_matrix = Teuchos::rcp(matrix, false);     
+          const auto teuchos_wrapped_matrix = Teuchos::rcp(matrix, false);
           Teuchos::ParameterList parameters;
           MueLu::CreateEpetraPreconditioner(teuchos_wrapped_matrix, parameters);
           return 0;
index 91ec66250d50593b82884ccd4166dbf765e05c6e..169695583e7a08f9cb57c4dfec1692bb0ca94f81 100644 (file)
@@ -49,7 +49,8 @@
     <h5>Installing Trilinos</h5>
 
     <p style="color: red">
-      Note: The current version of deal.II requires at least Trilinos 12.4.
+      Note: The current version of deal.II requires at least Trilinos 12.4
+      (13.2 if Trilinos includes Kokkos).
       Deal.II is known to work with Trilinos up to 13.4. Other versions of
       Trilinos should work too but have not been tested prior to the
       release.
diff --git a/doc/news/changes/20221230DanielArndt b/doc/news/changes/20221230DanielArndt
new file mode 100644 (file)
index 0000000..4b5055a
--- /dev/null
@@ -0,0 +1,4 @@
+Updated: The minimum version for Trilinos has been bumped to 13.2 if Trilinos
+bundles Kokkkos.
+<br>
+(Daniel Arndt, 2022/12/30)

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.