]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix a couple tests for older Kokkos versions used by Trilinos 14733/head
authorDaniel Arndt <arndtd@ornl.gov>
Thu, 26 Jan 2023 04:12:36 +0000 (23:12 -0500)
committerDaniel Arndt <arndtd@ornl.gov>
Thu, 26 Jan 2023 04:12:36 +0000 (23:12 -0500)
tests/base/kokkos_tensor_01.cc
tests/lac/parallel_vector_21.cc

index ac98facd079118c5848e434212a904fcf72ab394..c600edd8fe4db34aec64c69e807500f11a550a33 100644 (file)
@@ -56,8 +56,7 @@ test_gpu()
 
   // Launch the kernels.
   Kokkos::parallel_for(
-    Kokkos::MDRangePolicy<ExecutionSpace, Kokkos::Rank<2>>(exec,
-                                                           {{0, 0}},
+    Kokkos::MDRangePolicy<ExecutionSpace, Kokkos::Rank<2>>({{0, 0}},
                                                            {{dim, dim}}),
     KOKKOS_LAMBDA(int i, int j) { t_dev()[i][j] = j + i * dim + 1.; });
   Kokkos::parallel_for(
index ddedd449b9038eaafe16bb383aff993ed5970e32..29be8db48e69ac6cb38f5189a04ebd5ec0f64970 100644 (file)
@@ -54,10 +54,6 @@ test()
     v2.get_values(), v2.local_size());
   Kokkos::deep_copy(v2_view, 1.);
 
-  Kokkos::parallel_for(
-    v2.local_size(), KOKKOS_LAMBDA(int i) {
-      KOKKOS_IMPL_DO_NOT_USE_PRINTF("%d: %f\n", i, v2_view(i));
-    });
   // add entries to ghost values
   // Because of limitation in import, the IndexSet of the ReadWriteVector needs
   // to have the local elements.

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.