]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Don't enable vectorization for Kokkos+Cuda
authorDaniel Arndt <arndtd@ornl.gov>
Wed, 2 Apr 2025 13:30:51 +0000 (09:30 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Wed, 2 Apr 2025 13:31:15 +0000 (09:31 -0400)
cmake/modules/FindDEAL_II_KOKKOS.cmake

index 348eda5ca66240e5580cedbca2eb5ac35dc98bb6..8e9226a9065f36b552b2a98bffbbf2a5092bf938 100644 (file)
@@ -133,13 +133,6 @@ if(KOKKOS_FOUND)
   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:
-    # "[...] 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)
-
     # Require lambda support and expt-relaxed-constexpr for Cuda
     # so that we can use std::array and other interfaces with
     # __host__ constexpr functions in device code

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.