_NUM_PES(3)

πŸ“¦
version 5.0.10 Β· 4 versions
, in ubuntu stonking

πŸ’– 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:


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