From: Daniel Arndt Date: Thu, 25 May 2023 14:46:23 +0000 (-0400) Subject: Fix for Kokkos < 3.6.00 X-Git-Tag: v9.5.0-rc1~177^2~7 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=288f24b54ff8ee33895bbc3cccdf1f8c9fb5429f;p=dealii.git Fix for Kokkos < 3.6.00 --- 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)