SHMEM_N_PES(3)

okay so this is the Open MPI manual page SHMEM_N_PES(3), and it’s short but honestly iconic πŸ’… let’s go.

🌸 NAME 🌸

_num_pes, _num_pes, shmem_n_pes β€” returns the number of processing elements (PEs) used to run the application.

yes bestie, the NAME line really does list _num_pes twice β€” keeping every detail exactly as written, no editing, periodt 🫢

✨ SYNOPSIS ✨

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 ()

πŸ’– DESCRIPTION πŸ’–

num_pes() or shmem_n_pes() return the total number of PEs running in an application.

That’s the whole tea: total PEs in the app, no cap ✨

πŸ‘€ SEE ALSO

2003-2026, The Open MPI Community


πŸ¦‹ Signing off from the Open MPI manual/source, page SHMEM_N_PES(3), dated May 14, 2026 β€” bye bestie, go count those PEs! πŸŒˆπŸ’–

πŸ“¦ where this page comes from