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:
π Copyright π
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
- ubuntu stonking: openmpi-doc 5.0.10-6 Β· other
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms