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 ability to direct app GPU support #2134

Merged
merged 1 commit into from
Feb 11, 2025
Merged

Conversation

rhc54
Copy link
Contributor

@rhc54 rhc54 commented Feb 6, 2025

There apparently are some circumstances when an application can benefit from disabling the internal GPU support in one or more of its libraries. Let's assume that a library might also provide a mechanism by which that support can be defaulted to enabled or disabled.

Add CLI support for specifying that GPU support be enabled or disabled. We assume that:

(a) this is something that a tool might want to enquire about
to see what an app was told to do

(b) a user might want/expect this to be a directive inherited
by any spawned child jobs

Also note that there was a lot of code duplication between prte and prun_common when it came to parsing the cmd line for job-level directives. Collect those in a common function as we see that some divergence had already occurred.

Refs openpmix/openpmix#3528

There apparently are some circumstances when an application can
benefit from disabling the internal GPU support in one or more
of its libraries. Let's assume that a library might also provide
a mechanism by which that support can be defaulted to enabled
or disabled.

Add CLI support for specifying that GPU support be enabled or
disabled. We assume that:

(a) this is something that a tool might want to enquire about
    to see what an app was told to do

(b) a user might want/expect this to be a directive inherited
    by any spawned child jobs

Also note that there was a lot of code duplication between
prte and prun_common when it came to parsing the cmd line
for job-level directives. Collect those in a common function
as we see that some divergence had already occurred.

Signed-off-by: Ralph Castain <rhc@pmix.org>
@rhc54 rhc54 merged commit 0b74d3a into openpmix:master Feb 11, 2025
17 checks passed
@rhc54 rhc54 deleted the topic/gpu branch February 11, 2025 23:10
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.

1 participant