OS Manuals

_num_pes(3)

_NUM_PES(3) Open MPI _NUM_PES(3)


_num_pes, _num_pes shmem_n_pes <#shmem-n-pes> - 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.

See also:


2003-2026, The Open MPI Community

September 11, 2026

openmpi-cuda-13.2 5.0.11-r0 · enterprise-packages · ingested 2026-10-02