Skip to content

Commit

Permalink
legion: support for invertible sharding functions
Browse files Browse the repository at this point in the history
  • Loading branch information
lightsighter committed Jun 29, 2020
1 parent a90a859 commit bb26869
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions runtime/legion.h
Original file line number Diff line number Diff line change
Expand Up @@ -3692,6 +3692,13 @@ namespace Legion {
virtual ShardID shard(const DomainPoint &point,
const Domain &full_space,
const size_t total_shards) = 0;
public:
virtual bool is_invertible(void) const { return false; }
virtual void invert(ShardID shard,
const Domain &shard_domain,
const Domain &full_domain,
const size_t total_shards,
std::vector<DomainPoint> &points) { }
};

/**
Expand Down

0 comments on commit bb26869

Please sign in to comment.