Update 'DynamicLoading' docs with section on loading Chapel libraries#28973
Merged
dlongnecke-cray merged 2 commits intoJun 12, 2026
Merged
Conversation
Signed-off-by: David Longnecker <dlongnecke-cray@users.noreply.github.com>
benharsh
approved these changes
Jun 11, 2026
|
|
||
| Additionally, while it should be possible to execute parallel and | ||
| distributed code from a loaded Chapel library, it is possible that certain | ||
| (combinations of) features may be bugged and fail to work correctly. |
| Do note that only ``export`` procedures may be called from the library. This | ||
| restriction may be removed in the future. | ||
|
|
||
| .. note:: |
Member
There was a problem hiding this comment.
Is there a way a user might run into this? Or is this something only a developer would encounter after modifying the runtime? If it's the latter, I'd recommend moving this into a comment.
Contributor
Author
There was a problem hiding this comment.
Hi Ben, it's something a user could run into if they build from source.
Signed-off-by: David Longnecker <dlongnecke-cray@users.noreply.github.com>
jabraham17
reviewed
Jun 17, 2026
| This feature is highly unstable (even more than the rest of this module). | ||
| As of the 2.9 release, it is only supported when ``CHPL_COMM=gasnet`` and | ||
| ``CHPL_LIB_PIC=pic``. Safety checks have not been added yet, so dynamically | ||
| loaded code may break in unexpected ways if these constraints are not met. |
Member
There was a problem hiding this comment.
I thought it was also possible with CHPL_COMM=none?
Contributor
Author
There was a problem hiding this comment.
Oh, shoot. Totally fixated on configurations with comm when I wrote that.
Member
There was a problem hiding this comment.
I wouldn't break the freeze over this, but it should be fixed on main asap imo
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 a new section to the
DynamicLoadingmodule docs that describes how to build and load a Chapel library.Reviewed by @benharsh. Thanks!