_NUM_PES(3)
π NAME π
_num_pes, _num_pes, shmem_n_pes β bestie, this is the lil function that tells you how many processing elements (PEs) are out there running your app. Like, the whole squad headcount. π«Ά
β¨ SYNOPSIS β¨
okay so here's how you call it, depending on your language era:
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 it. that's the whole vibe. it's giving census day for your parallel program π
See also:
π Copyright
2003-2026, The Open MPI Community
okay bestie that's the whole page fr fr π this lil gem shipped with Open MPI and the page is dated Sep 10, 2026 β go forth and count your PEs, you got this π
π¦ 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