Repository navigation
Closes #4227: Hitting Chapel's default instantiation limit when compiling for 3 or more dimensions - #5002
Merged
Conversation
…when compiling for 3 or more dimensions
1RyanK
force-pushed
the
4227-Hitting_Chapels_default_instantiation_limit_when_compiling_for_3_or_more_dimensions
branch
from
October 15, 2025 23:24
3f0af7e to
fb46740
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
(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
and you will see
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.mdso 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