Skip to content

[Bug]: chpl_allStridesArePositive hitting instatiation limits for Arkouda #27069

Open
@ShreyasKhandekar

Description

@ShreyasKhandekar

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 instantiate N**2 versions of this function. Whereas all it does is to do some checking on the array’s domain’s ranges, which just have int(64) indices.

Is this issue currently blocking your progress?
No

Steps to Reproduce

See issue Bears-R-Us/arkouda#4227

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions