]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: remove a superfluous check
authorMatthias Maier <tamiko@43-1.org>
Mon, 24 Mar 2025 23:03:34 +0000 (18:03 -0500)
committerMatthias Maier <tamiko@43-1.org>
Tue, 25 Mar 2025 15:06:32 +0000 (10:06 -0500)
This is already handled in FindDEAL_II_KOKKOS.cmake. No need to
duplicate the logic.

cmake/configure/configure_20_trilinos.cmake

index 70aa34186dfb22a2f26a7ee2bb4a533b46078499..2988a134442521877963491e240667d994d04dca 100644 (file)
@@ -205,16 +205,6 @@ macro(feature_trilinos_find_external var)
       set(TRILINOS_KOKKOS_DIR "${TRILINOS_CONFIG_DIR}/..")
     endif()
 
-    if(TRILINOS_WITH_KOKKOS AND 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:
-      # "[...] contains a vector, which is not supported in device code". We
-      # would like to set the variable in check_01_cpu_feature but at that point
-      # we don't know if CUDA support is enabled in Kokkos
-      set(DEAL_II_VECTORIZATION_WIDTH_IN_BITS 0)
-      KOKKOS_CHECK(OPTIONS CUDA_LAMBDA)
-    endif()
-
     if(TRILINOS_WITH_TPETRA)
       #
       # Check if Tpetra is usable in fact.

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.