Skip to content

Commit

Permalink
remove labels in deepcopies
Browse files Browse the repository at this point in the history
  • Loading branch information
blegouix committed Jun 27, 2024
1 parent a38c48c commit d4c8270
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 26 deletions.
30 changes: 6 additions & 24 deletions include/ddc/kernels/splines/splines_linear_problem_3x3_blocks.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,18 +123,9 @@ class SplinesLinearProblem3x3Blocks : public SplinesLinearProblem2x2Blocks<ExecS

MultiRHS const buffer = Kokkos::create_mirror(ExecSpace(), b_center);

Kokkos::deep_copy(
"ddc_splines_interchange_rows_from_3_to_2_blocks_rhs_step_1",
buffer,
b_center);
Kokkos::deep_copy(
"ddc_splines_interchange_rows_from_3_to_2_blocks_rhs_step_2",
b_top_dst,
b_top);
Kokkos::deep_copy(
"ddc_splines_interchange_rows_from_3_to_2_blocks_rhs_step_3",
b_center_dst,
buffer);
Kokkos::deep_copy(buffer, b_center);
Kokkos::deep_copy(b_top_dst, b_top);
Kokkos::deep_copy(b_center_dst, buffer);
}

/**
Expand Down Expand Up @@ -167,18 +158,9 @@ class SplinesLinearProblem3x3Blocks : public SplinesLinearProblem2x2Blocks<ExecS

MultiRHS const buffer = Kokkos::create_mirror(ExecSpace(), b_center);

Kokkos::deep_copy(
"ddc_splines_interchange_rows_from_2_to_3_blocks_rhs_step_1",
buffer,
b_center_src);
Kokkos::deep_copy(
"ddc_splines_interchange_rows_from_2_to_3_blocks_rhs_step_2",
b_top,
b_top_src);
Kokkos::deep_copy(
"ddc_splines_interchange_rows_from_2_to_3_blocks_rhs_step_3",
b_center,
buffer);
Kokkos::deep_copy(buffer, b_center_src);
Kokkos::deep_copy(b_top, b_top_src);
Kokkos::deep_copy(b_center, buffer);
}

public:
Expand Down
4 changes: 2 additions & 2 deletions include/ddc/kernels/splines/splines_linear_problem_sparse.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ class SplinesLinearProblemSparse : public SplinesLinearProblem<ExecSpace>
Kokkos::ALL,
Kokkos::pair(std::size_t(0), subview_end - subview_begin));

Kokkos::deep_copy("ddc_splines_copy_to_chunk_of_cols", x_chunk, b_chunk);
Kokkos::deep_copy(x_chunk, b_chunk);

if (!transpose) {
m_solver->add_logger(convergence_logger);
Expand All @@ -280,7 +280,7 @@ class SplinesLinearProblemSparse : public SplinesLinearProblem<ExecSpace>
"Ginkgo did not converged in ddc::detail::SplinesLinearProblemSparse");
}

Kokkos::deep_copy("ddc_splines_copy_back_from_chunk_of_cols", b_chunk, x_chunk);
Kokkos::deep_copy(b_chunk, x_chunk);
}
}
};
Expand Down

0 comments on commit d4c8270

Please sign in to comment.