Skip to content

Commit

Permalink
Fencing for sptrsv
Browse files Browse the repository at this point in the history
  • Loading branch information
e10harvey committed Sep 26, 2023
1 parent 82a2050 commit 8497ad2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions sparse/impl/KokkosSparse_twostage_gauss_seidel_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -986,10 +986,11 @@ class TwostageGaussSeidel {
Kokkos::subview(localZ, Kokkos::ALL(), range_type(j, j + 1));
single_vector_view_t Rj(localRj.data(), num_rows);
single_vector_view_t Zj(localZj.data(), num_rows);
my_exec_space
.fence(); // Wait for writes to R and Z to land, TODO: remove
sptrsv_solve(handle->get_gs_sptrsvL_handle(), crsmatL.graph.row_map,
crsmatL.graph.entries, crsmatL.values, Rj, Zj);
execution_space()
.fence(); // TODO: call sptrsv_solve on stream and remove
Kokkos::fence(); // TODO: call sptrsv_solve on stream and remove
}
} else {
using namespace KokkosSparse::Experimental;
Expand All @@ -1002,10 +1003,11 @@ class TwostageGaussSeidel {
Kokkos::subview(localZ, Kokkos::ALL(), range_type(j, j + 1));
single_vector_view_t Rj(localRj.data(), num_rows);
single_vector_view_t Zj(localZj.data(), num_rows);
my_exec_space
.fence(); // Wait for writes to R and Z to land, TODO: remove
sptrsv_solve(handle->get_gs_sptrsvU_handle(), crsmatU.graph.row_map,
crsmatU.graph.entries, crsmatU.values, Rj, Zj);
execution_space()
.fence(); // TODO: call sptrsv_solve on stream and remove
Kokkos::fence(); // TODO: call sptrsv_solve on stream and remove
}
}

Expand Down

0 comments on commit 8497ad2

Please sign in to comment.