106 Kokkos::View<int *, Kokkos::HostSpace> offsets(
"offsets", 0);
107 Kokkos::View<Kokkos::pair<int, int> *, Kokkos::HostSpace> indices_ranks(
114 std::vector<std::pair<int, int>> indices_ranks_vector;
115 for (
unsigned int i = 0; i < indices_ranks.extent(0); ++i)
117 indices_ranks_vector.emplace_back(indices_ranks(i).
first,
121 std::vector<int> offsets_vector;
122 offsets_vector.insert(offsets_vector.begin(),
124 offsets.data() + offsets.extent(0));
126 return {indices_ranks_vector, offsets_vector};