Skip to content

Commit

Permalink
Modify fences in View API test
Browse files Browse the repository at this point in the history
  • Loading branch information
cz4rs committed Jul 26, 2023
1 parent c0266e9 commit 5f7d275
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/unit_test/TestViewAPI.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1227,7 +1227,7 @@ class TestViewAPI {
Kokkos::deep_copy(typename hView4::execution_space(), dx, hx);
Kokkos::deep_copy(typename hView4::execution_space(), dy, dx);
Kokkos::deep_copy(typename hView4::execution_space(), hy, dy);
typename dView4::execution_space().fence();
typename hView4::execution_space().fence();

for (size_t ip = 0; ip < N0; ++ip)
for (size_t i1 = 0; i1 < N1; ++i1)
Expand All @@ -1238,7 +1238,7 @@ class TestViewAPI {

Kokkos::deep_copy(typename hView4::execution_space(), dx, T(0));
Kokkos::deep_copy(typename hView4::execution_space(), hx, dx);
typename dView4::execution_space().fence();
typename hView4::execution_space().fence();

for (size_t ip = 0; ip < N0; ++ip)
for (size_t i1 = 0; i1 < N1; ++i1)
Expand Down

0 comments on commit 5f7d275

Please sign in to comment.