Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make co-locales respect CHPL_RT_MAX_HEAP_SIZE (#24967)
This PR fixes the way that co-locales determine their fixed heap size when using COMM=ofi. Previously, co-locales would divy up 85% of the memory. Now, co-locales divy up the memory based upon the max heap size set in `CHPL_RT_MAX_HEAP_SIZE`. In other words, `CHPL_RT_MAX_HEAP_SIZE` represents the maximum heap per node, and the co-locales just divide it evenly. If `CHPL_RT_MAX_HEAP_SIZE` is not set, then the previous default of 85% is used. Tested using COMM=ofi with no co-locales, 2 co-locales, and 4 co-locales, with/without `CHPL_RT_MAX_HEAP_SIZE` set [Reviewed by @jhh67]
- Loading branch information