Skip to content

Commit

Permalink
Merge pull request #13714 from trilinos/tpetra/copy-and-permute-3
Browse files Browse the repository at this point in the history
Tpetra: copy and permute improvements
  • Loading branch information
jhux2 authored Feb 15, 2025
2 parents 984b943 + 6b87bc4 commit fcf1459
Show file tree
Hide file tree
Showing 7 changed files with 790 additions and 330 deletions.
20 changes: 20 additions & 0 deletions packages/tpetra/core/src/Tpetra_CrsGraph_decl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1194,6 +1194,26 @@ namespace Tpetra {
buffer_device_type>& permuteFromLIDs,
const CombineMode CM) override;


void
insertGlobalIndicesDevice
(const CrsGraph<LocalOrdinal,GlobalOrdinal,Node>& srcCrsGraph,
CrsGraph<LocalOrdinal,GlobalOrdinal,Node>& tgtCrsGraph,
const Kokkos::DualView<const local_ordinal_type*, buffer_device_type>& permuteToLIDs,
const Kokkos::DualView<const local_ordinal_type*, buffer_device_type>& permuteFromLIDs,
LocalOrdinal loopEnd);

void
copyAndPermuteImpl
(const row_graph_type& source,
row_graph_type& target,
const size_t numSameIDs,
const Kokkos::DualView<const local_ordinal_type*,
buffer_device_type>& permuteToLIDs,
const Kokkos::DualView<const local_ordinal_type*,
buffer_device_type>& permuteFromLIDs,
const CombineMode CM);

using padding_type = Details::CrsPadding<
local_ordinal_type, global_ordinal_type>;

Expand Down
Loading

0 comments on commit fcf1459

Please sign in to comment.