-
Notifications
You must be signed in to change notification settings - Fork 68
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
MPMD Mode: Environment propagation per app context #607
Comments
Should be trivial to do. However, we normally do this the other way around - our convention is that the "g" prefix means "global" and applies to all app-contexts. I see no issue making that change given that we haven't released PRRTE v2 yet - it's a good time to do it. |
Yeah. We'd need to think of a good name for the option (since |
IIRC, our convention is to apply anything given to the first app-context to all app-contexts unless directed otherwise (i.e., by including it again for the second app-context). This is how we treat the In other words, it sounds to me like the current implementation of |
I tested again today (since we made fixes to the
It would be nice to have a (new) per-app context version of this option so you could have different values for the same envar in different app contexts:
Adding a new option like |
It would be useful if there was a per-app-context version of
-x
that allowed each app-context in an MPMD launch to set its own version of an environment variable.For example, the
CUDA_VISIBLE_DEVICES
environment variable is used to restrict the set of GPUs visible to a process. An application may want different processes in the same namespace assigned to different GPUs. Currently, users need to create a custom wrapper script to set this environment variable after launch. But it would be nice if we had a version of-x
that allowed them to set it on the command line.For example (here using mpirun, but we can translate it to prun in relation with Issue #605)
The text was updated successfully, but these errors were encountered: