SHMEM_N_PES(3)

πŸ’– NAME πŸ’–

shmem_n_pes, _num_pes β€” bestie, this is the one that tells you how many PEs are out here running your application. That's processing elements, okurrr? The whole squad. πŸ’…


✨ 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 πŸ¦‹

okay so, num_pes() or shmem_n_pes() β€” both of them, iconic behavior β€” return the total number of PEs running in an application. That's it. That's the whole vibe check. You ask, it tells you how many of y'all are out there. πŸ”₯

No cap, it's literally just counting your friends for you. 🫢

🌸 See also:


2003-2026, The Open MPI Community


and that's the tea bestie πŸ’œ this page was handed down to us on Sep 10, 2026, straight from the Open MPI girlies, filed under SHMEM_N_PES(3) β€” go forth and go count your PEs, mwah πŸŽ€βœ¨

πŸ“¦ where this page comes from