MPI_INFO_ENV(3)
π MPI_INFO_ENV π
okay bestie, welcome to the Open MPI manual page for MPI_Info_env β a static MPI_Info object that's literally holding all the tea about how your application got executed β¨
πΈ NAME πΈ
MPI_Info_env β a static MPI_Info object containing info about the application π«Ά
β¨ DESCRIPTION β¨
so the MPI-3 standard said "let there be a static MPI_Info object" and its name is MPI_Info_env, and it's the one you hit up when you wanna know how your application was run from the run-time. that's it, that's the vibe π
π SUPPORTED FIELDS π
these are the fields you can pull out of it, one by one, no skipping π
commandβ if it's available, this gets set toargv[0]. and ngl, it might not always be available β like, a program is fully allowed to callMPI_InitwithNULLparameters, and in that caseargv[0]just won't be set if it's run as a singleton. also this value will never be set in a Fortran program, because the argv just aren't there. sorry Fortran girlies πargvβ the argv that was given to the application. if no arguments were passed to the application, this value won't be set. and it also won't be set if it's a singleton callingMPI_InitwithNULLparameters, or if it's a Fortran program. πmaxprocsβ the number of processes in the job. simple, iconic πsoftβ Open MPI does not support the soft option for specifying the number of processes to be executed, so this value is set to the same thing asmaxprocs. no soft launch energy here bestie πhostβ the name of the host this process is executing upon, aka the value that comes back fromgethostname(). πarchβ the architecture of the host this process is executing upon. this tells you the underlying chip architecture (like,x86_64for example) β if it can be determined. lowkey conditional πwdirβ the working directory at the time the process was launched bympiexec. heads up though: this value will not be set for processes launched as singletons, because there's no reliable way for the MPI library to figure out the location. she tried her best π₯Ίfileβ even though the MPI-3 standard specifies this field, no value is currently set for it. it's giving ghost π»thread_levelβ the requested MPI thread level. note that this may differ from the actual MPI thread level of the application, so don't get it twisted β οΈompi_num_appsβ the number of application contexts in an MPMD job. this is an Open MPI-specific field and value π¦ompi_npβ the number of processes in each application context, handed to you as a space-delimited list of integers. Open MPI-specific field and value β¨ompi_first_rankβ the MPI rank of the first process in each application context, also handed to you as a space-delimited list of integers. Open MPI-specific field and value π«ompi_positioned_file_dirβ if Open MPI was asked to pre-position files, this field gives you the top-level directory where those files were placed. Open MPI-specific field and value π
π ERRORS π
when you call MPI_Info_get, the flag parameter gets set to zero (false) if a value for the field has not been set. so like, always check the flag, bestie, fr fr.
See also:
MPI_Info_get
π Copyright π
2003-2026, The Open MPI Community
and that's the whole page, no cap π«Ά written by the Open MPI girlies, source version pegged to that Sep 10, 2026 date β go forth and MPI_Info_get responsibly, mwah πβ¨π
π¦ where this page comes from
- ubuntu stonking: openmpi-doc 5.0.10-6 Β· other
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms