- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Forum Gurus,
Where can I find a list of environment variables defined by Intel mpirun that contain the rank and process information, analogous to OMP_COMM_WORLD_SIZE, OMP_COMM_WORLD_RANK, etc. shown here: https://www.open-mpi.org/faq/?category=running#mpi-environmental-variables? Does Intel MPI even provide this functionality? I can't seem to find anything similar in the hydra documentation (https://software.intel.com/en-us/mpi-developer-reference-linux).
Thanks in advance for your help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We don't provide a documented list of the environment variables set at runtime. If you want to see what is set for any given job, you can use I_MPI_HYDRA_DEBUG=1, but this will generate a lot of output. Alternatively, you can just run a script to show your environment at launch.
We do not have an equivalent for OMPI_COMM_WORLD_LOCAL_RANK.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The environment variables you want are PMI_RANK and PMI_SIZE.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi James,
Thanks very much! Those are helpful but merely examples: for future reference, I was hoping you could point me to a complete list. For example, it may also be helpful for me to know each process' local rank, like OMPI_COMM_WORLD_LOCAL_RANK.
Searching the Hydra documentation for PMI_RANK does not reveal such a list, nor does the output of mpirun -help, nor does a cursory google for PMI_RANK or PMI_SIZE. I'm surprised this information is not more readily available...
Much appreciated,
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We don't provide a documented list of the environment variables set at runtime. If you want to see what is set for any given job, you can use I_MPI_HYDRA_DEBUG=1, but this will generate a lot of output. Alternatively, you can just run a script to show your environment at launch.
We do not have an equivalent for OMPI_COMM_WORLD_LOCAL_RANK.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Understood, thanks. "mpirun -np 1 printenv" turned up PMI_RANK, PMI_FD, and PMI_SIZE. I think RANK and SIZE will be enough to get me off the ground.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page