1 #ifndef DIY_PARTNERS_SWAP_HPP
2 #define DIY_PARTNERS_SWAP_HPP
23 template<
class Decomposer>
26 bool contiguous =
true
28 Parent(decomposer, k, contiguous) {}
31 bool contiguous =
true
33 Parent(divs, kvs, contiguous) {}
35 bool active(
int round,
int gid,
const Master&)
const {
return true; }
37 void incoming(
int round,
int gid, std::vector<int>& partners,
const Master&)
const { Parent::fill(round - 1, gid, partners); }
38 void outgoing(
int round,
int gid, std::vector<int>& partners,
const Master&)
const { Parent::fill(round, gid, partners); }
Definition: common.hpp:10
Decomposes a regular (discrete or continuous) domain into even blocks; creates Links with Bounds alon...
Definition: decomposition.hpp:75
RegularSwapPartners(const DivisionVector &divs, const KVSVector &kvs, bool contiguous=true)
Definition: swap.hpp:29
RegularSwapPartners(const Decomposer &decomposer, int k, bool contiguous=true)
Definition: swap.hpp:24
Definition: master.hpp:35
Partners for swap-reduce.
Definition: swap.hpp:16