Repository navigation
Part of #2384: Checkpoint numeric arrays; improved framework - #4644
Merged
Merged
Conversation
ajpotts
requested review from
1RyanK,
ajpotts,
drculhane,
e-kayrakli and
jaketrookman
June 20, 2025 14:39
ShreyasKhandekar
self-requested a review
June 23, 2025 18:43
ShreyasKhandekar
approved these changes
Jun 23, 2025
ajpotts
enabled auto-merge
June 24, 2025 17:40
Signed-off-by: Vassily Litvinov <[email protected]>
auto-merge was automatically disabled
June 24, 2025 18:29
Head branch was pushed to by a user without write access
vasslitvinov
force-pushed
the
tidy-reg-framework
branch
from
June 24, 2025 18:29
2513dc2 to
18f9633
Compare
ajpotts
enabled auto-merge
June 24, 2025 19:56
ajpotts
approved these changes
Jun 24, 2025
ajpotts
added this pull request to the merge queue
Jun 24, 2025
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.
Add the ability for checkpointing to save and load 1-d arrays of any integer or real or bool types specified in
registration-config.json.Implementation-wise, set up a framework for checkpointing of any subclasses of AbstractSymEntry, by using dynamic dispatch and starting the entry metadata file with a line that is consistent across all entry kinds.
Furthermore, set up a framework in the server code that allows
paramfor-loops over allparamdimensions and all element types specified in"parameter_classes"["array"]inregistration-config.json.In more implementation detail, the list of
"parameter_classes"["array"]["nd"]is now available througharrayDimensionsTy;"parameter_classes"["array"]["dtype"]througharrayElementsTy. These are generated intosrc/registry/Commands.chplbysrc/registry/register_commands.py, which handles@arkouda.instantiateAndRegisterand similar attributes. Their use is exemplified by the implementations ofarrayDimIsSupported(),arrayElmTypeIsSupported()orloadSymEntry().This framework will be leveraged to implement checkpointing of the remaining types of SymTab entries. The type-tuple-based approach is a workaround for Chapel's lack of iterators that yield
paramortype.Other implementation changes:
Restricted
addEntry()to handle only those types that are requested inregistration-config.json. This reduces the amount of generated code because the compiler no longer needs to instantiateSymEntryfor some of the unintended types, such as[u]int16 and 32.Extended
SymTab.insert()to set the new entry's name, which would otherwise be left empty.Replaced uses of
MaxArrayDimswitharrayDimIsSupported(), except for one in getConfig().Moved
getRegistrationConfig()fromregister_commands.pytoMsgProcessing.chplfor easier maintenance, and simplified it.