With the default `mpiexec`, which is `mpiexec.hydra`, it sets environment variable `PMI_RANK`, and `PMI_SIZE`. You can check that with
mpiexec -n 1 env |grep PMI_
--
Hui Zhou
From:
Sajid Ali via discuss <discuss@mpich.org>
Date: Monday, January 4, 2021 at 8:13 PM
To: discuss@mpich.org <discuss@mpich.org>
Cc: Sajid Ali <sajidsyed2021@u.northwestern.edu>
Subject: [mpich-discuss] MPICH equivalent to OMPI_COMM_WORLD_RANK
Hi MPICH-developers,
Does MPICH set an environment variable describing the MPI rank equivalent to OpenMPI's `OMPI_COMM_WORLD_RANK` ? If so, what is it called ?
Thank You,