From 5d85fa4d05924f389a2032f0686e1c37cf526bc7 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Wed, 2 Apr 2025 09:30:51 -0400 Subject: [PATCH] Don't enable vectorization for Kokkos+Cuda --- cmake/modules/FindDEAL_II_KOKKOS.cmake | 7 ------- 1 file changed, 7 deletions(-) diff --git a/cmake/modules/FindDEAL_II_KOKKOS.cmake b/cmake/modules/FindDEAL_II_KOKKOS.cmake index 348eda5ca6..8e9226a906 100644 --- a/cmake/modules/FindDEAL_II_KOKKOS.cmake +++ b/cmake/modules/FindDEAL_II_KOKKOS.cmake @@ -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 -- 2.39.5