From 288f24b54ff8ee33895bbc3cccdf1f8c9fb5429f Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Thu, 25 May 2023 10:46:23 -0400 Subject: [PATCH] Fix for Kokkos < 3.6.00 --- include/deal.II/matrix_free/cuda_matrix_free.templates.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/deal.II/matrix_free/cuda_matrix_free.templates.h b/include/deal.II/matrix_free/cuda_matrix_free.templates.h index d6ef02b34f..b09be81b44 100644 --- a/include/deal.II/matrix_free/cuda_matrix_free.templates.h +++ b/include/deal.II/matrix_free/cuda_matrix_free.templates.h @@ -203,6 +203,7 @@ namespace CUDAWrappers auto constraint_mask_host = Kokkos::create_mirror_view(data->constraint_mask[color]); +#if KOKKOS_VERSION >= 30600 auto local_to_global_host = Kokkos::create_mirror_view(Kokkos::WithoutInitializing, data->local_to_global[color]); @@ -214,6 +215,14 @@ namespace CUDAWrappers auto inv_jacobian_host = Kokkos::create_mirror_view(Kokkos::WithoutInitializing, data->inv_jacobian[color]); +#else + auto local_to_global_host = + Kokkos::create_mirror_view(data->local_to_global[color]); + auto q_points_host = Kokkos::create_mirror_view(data->q_points[color]); + auto JxW_host = Kokkos::create_mirror_view(data->JxW[color]); + auto inv_jacobian_host = + Kokkos::create_mirror_view(data->inv_jacobian[color]); +#endif auto cell = graph.cbegin(), end_cell = graph.cend(); for (unsigned int cell_id = 0; cell != end_cell; ++cell, ++cell_id) -- 2.39.5