]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix for Kokkos < 3.6.00
authorDaniel Arndt <arndtd@ornl.gov>
Thu, 25 May 2023 14:46:23 +0000 (10:46 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Thu, 25 May 2023 14:47:07 +0000 (10:47 -0400)
include/deal.II/matrix_free/cuda_matrix_free.templates.h

index d6ef02b34fdd3d6a4746a62b15a5cf71b10da22e..b09be81b445720a86a7a9d29d826ea3a86dcce9c 100644 (file)
@@ -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)

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.