Open
Description
Summary of Problem
When compiling arkouda to support 1-3D arrays by modifying registration config, we run into an error with exceeding Chapel's instantiation limit. This is an issue with chpl_allStridesArePositive
These are notes from @e-kayrakli about how chpl_allStridesArePositive
can be restructures to avoid this.
chpl_allStridesArePositive
takes 4 generic arguments- called from distribution types — when it comes to Arkouda, the only one that matters is
BlockDist
- it is called with array and domain values
- we should avoid calling this with array values as there are many many array types instantiated in Arkouda. In one instance, it is called with 2 array arguments. So, if there are
N
array types instantiated in Arkouda, we instantiateN**2
versions of this function. Whereas all it does is to do some checking on the array’s domain’s ranges, which just haveint(64)
indices.
Is this issue currently blocking your progress?
No
Steps to Reproduce
See issue Bears-R-Us/arkouda#4227