Skip to content

Closes #4227: Hitting Chapel's default instantiation limit when compiling for 3 or more dimensions - #5002

Merged
ajpotts merged 1 commit into
Bears-R-Us:mainfrom
1RyanK:4227-Hitting_Chapels_default_instantiation_limit_when_compiling_for_3_or_more_dimensions
Oct 20, 2025
Merged

ajpotts merged 1 commit into
Bears-R-Us:mainfrom
1RyanK:4227-Hitting_Chapels_default_instantiation_limit_when_compiling_for_3_or_more_dimensions

Conversation

@1RyanK

@1RyanK 1RyanK commented Oct 15, 2025 •

Copy link
Copy Markdown
Contributor

This allows users to override Chapel's instantiation limit from the make line.

As it happens, this is not easy to test that it "fixes" anything right now. I think recent PRs have done an outstanding job of fixing this issue from the perspective of not needing such a high instantiation limit (and, I might add, the memory issue). On my laptop with about 30 GB RAM free, I was able to set

# Snippet from registration_config.json
"nd": [1, 2, 3, 4, 5],

(yes, five dimensions) and while it took a very long time to compile (around 40 minutes) it managed to compile with the default instantiation limit of 512. So how do we know that this works? It's actually not that hard to check that it breaks things. You can run

make instantiate_max=10

and you will see

$CHPL_HOME/modules/standard/CTypes.chpl:611: error: Function ':' has been instantiated too many times
note:   If this is intentional, try increasing the instantiation limit from 10
make: *** [Makefile:575: arkouda_server] Error 1

So clearly this code has an effect! That really ought to mean that if a user wants a higher instantiation limit, they should be able to get it.

Oh, and I updated BUILD.md so anyone who greps through our files for the error should be able to find documentation on how to fix it!

Closes #4227: Hitting Chapel's default instantiation limit when compiling for 3 or more dimensions

@1RyanK
1RyanK force-pushed the 4227-Hitting_Chapels_default_instantiation_limit_when_compiling_for_3_or_more_dimensions branch from 3f0af7e to fb46740 Compare October 15, 2025 23:24

@ajpotts ajpotts left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love this. Thanks!

@jaketrookman jaketrookman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@ajpotts
ajpotts added this pull request to the merge queue Oct 20, 2025
Merged via the queue into Bears-R-Us:main with commit 10d9efe Oct 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hitting Chapel's default instantiation limit when compiling for 3 or more dimensions

3 participants