Skip to content

Commit

Permalink
realm: make sure dma system supports sufficient dimensionality
Browse files Browse the repository at this point in the history
  • Loading branch information
streichler committed Jan 24, 2022
1 parent a71e9e5 commit ceec163
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion runtime/realm/transfer/channel.h
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,10 @@ namespace Realm {
protected:
AddressList *addrlist;
bool partial;
static const int MAX_DIM = 8;
// we need to be one larger than any index space realm supports, since
// we use the contiguous bytes within a field as a "dimension" in some
// cases
static const int MAX_DIM = REALM_MAX_DIM + 1;
int partial_dim;
size_t pos[MAX_DIM];
};
Expand Down

0 comments on commit ceec163

Please sign in to comment.