Skip to content

Getting Environment Variables Used by MPI application #13271

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

Open
abeltre1 opened this issue May 21, 2025 · 1 comment
Open

Getting Environment Variables Used by MPI application #13271

abeltre1 opened this issue May 21, 2025 · 1 comment

Comments

@abeltre1
Copy link

Background Information

  1. Open MPI Version: v5.0.0
  2. Installation Method: Installed using a tarball
  3. System Description:
  4. Operating System/Version: Ubuntu Linux 22.04

Details of the Problem

I would like to know how to capture all the environment variables associated with an MPI application run. Specifically, is there an Open MPI variable that captures all the environment variables used to run the MPI application?

If there are specific commands or methods to retrieve these variables, please provide examples.

@abeltre1 abeltre1 changed the title Getting Environment Variables set to run and MPI Application Getting Environment Variables Used by MPI application May 21, 2025
@jsquyres
Copy link
Member

Are you asking from the perspective of the MPI application itself? If so, you can just use the C environ global variable to get all the environment variables and their values.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants