num_pes, _num_pes, shmem_n_pes
Returns the number of processing elements (PEs) used to run the application.
- Provided by: openmpi-doc (Version: 4.1.2-2ubuntu1)
- Source: openmpi
- Report a bug
Returns the number of processing elements (PEs) used to run the application.
C or C++:
#include <mpp/shmem.h> int _num_pes (void); int shmem_n_pes (void);
Fortran:
include 'mpp/shmem.fh' I = NUM_PES () I = SHMEM_N_PES ()
num_pes() or shmem_n_pes() return the total number of PEs running in an application.