Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for custom wrappers #813

Merged
merged 2 commits into from
Aug 9, 2023

Conversation

bryevdv
Copy link
Contributor

@bryevdv bryevdv commented Aug 9, 2023

This PR adds two new command line options --wrapper and --wrapper-inner to allow users to insert their own custom wrapper executables int the legate invocation chain.

Both wrappers come after bind.sh so that %%LEGATE_GLOBAL_RANK%% can be expanded in the invocation.

@bryevdv bryevdv added the category:improvement PR introduces an improvement and will be classified as such in release notes label Aug 9, 2023
@bryevdv bryevdv requested a review from manopapad August 9, 2023 21:20
Copy link
Contributor

@manopapad manopapad left a comment

Choose a reason for hiding this comment

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

Looks good. Optionally suggest rewording the help text a bit to make it clearer what this is expected to do.

Comment on lines 373 to 374
"executable) that will be responsible to indirectly invoke legate, "
"including any other wrappers. May contain the special string "
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"executable) that will be responsible to indirectly invoke legate, "
"including any other wrappers. May contain the special string "
"executable) to wrap the Legate executable invocation. This wrapper will "
"come right after the launcher invocation, and will be passed the rest of "
"the Legate invocation (including any other wrappers) to execute. May "
"contain the special string "

suggested rewording, similar for --wrapper-inner

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@bryevdv bryevdv merged commit 0aae22b into nv-legate:branch-23.09 Aug 9, 2023
@bryevdv bryevdv deleted the bv/generic-wrappers branch August 10, 2023 19:41
manopapad pushed a commit that referenced this pull request Mar 5, 2025
* don't overquote cuda flags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:improvement PR introduces an improvement and will be classified as such in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants