diff --git a/unittests/Kokkos/ParallelAdd.hpp b/unittests/Kokkos/ParallelAdd.hpp index 7d62552b1..132a99f14 100644 --- a/unittests/Kokkos/ParallelAdd.hpp +++ b/unittests/Kokkos/ParallelAdd.hpp @@ -243,7 +243,7 @@ struct ViewAdd { template void parallel_sum(typename Kokkos::ViewTraits::value_type &sum, const Kokkos::View A) { using ViewtypeA = Kokkos::View; - Kokkos::fence("parallel_sum: pre sum fence"); + Kokkos::fence(); if (A.span_is_contiguous()) { using ViewTypeFlat = Kokkos::View< @@ -260,13 +260,13 @@ void parallel_sum(typename Kokkos::ViewTraits::value_type &sum, const else { ViewSum::template execute(sum, A); } - Kokkos::fence("parallel_sum: post sum fence"); + Kokkos::fence(); } template void parallel_sum(const ExecSpace& space, typename Kokkos::ViewTraits::value_type &sum, const Kokkos::View A) { using ViewtypeA = Kokkos::View; - space.fence("parallel_sum: pre sum fence"); + space.fence(); if (A.span_is_contiguous()) { using ViewTypeFlat = Kokkos::View< @@ -283,13 +283,13 @@ void parallel_sum(const ExecSpace& space, typename Kokkos::ViewTraits else { ViewSum::template execute(sum, A, space); } - space.fence("parallel_sum: post sum fence"); + space.fence(); } template void parallel_add(Kokkos::View A, typename Kokkos::ViewTraits::const_value_type b) { using ViewtypeA = Kokkos::View; - Kokkos::fence("parallel_add: pre add fence"); + Kokkos::fence(); if (A.span_is_contiguous()) { using ViewTypeFlat = Kokkos::View< @@ -306,13 +306,13 @@ void parallel_add(Kokkos::View A, typename Kokkos::ViewTraits::template execute(A, b); } - Kokkos::fence("parallel_add: post add fence"); + Kokkos::fence(); } template void parallel_add(const ExecSpace& space, Kokkos::View A, typename Kokkos::ViewTraits::const_value_type b) { using ViewtypeA = Kokkos::View; - space.fence("parallel_add: pre add fence"); + space.fence(); if (A.span_is_contiguous()) { using ViewTypeFlat = Kokkos::View< @@ -329,18 +329,18 @@ void parallel_add(const ExecSpace& space, Kokkos::View A, typename Ko else { ViewAdd::template execute(A, b, space); } - space.fence("parallel_add: post add fence"); + space.fence(); } template void parallel_add(Kokkos::View A, const Kokkos::View B) { using ViewtypeA = Kokkos::View; using ViewtypeA = Kokkos::View; - Kokkos::fence("parallel_add: pre add fence"); + Kokkos::fence(); ViewAdd::template executeView(A, B); - Kokkos::fence("parallel_add: post add fence"); + Kokkos::fence(); } }