_NUM_PES(3)
π _NUM_PES(3) β Open MPI, bestie edition π
okay so real talk, this is <pink>_NUM_PES(3)</pink> from the Open MPI manual set, and it's genuinely one of the shortest, sweetest little pages ever. no cap. let's get into it π«Ά
β¨ NAME β¨
_num_pes, _num_pes, shmem_n_pes β literally just returns the number of processing elements (PEs) used to run the application. that's it. that's the whole job. iconic behaviour honestly π
(and yes, _num_pes shows up twice in the NAME line up there β that's exactly how it's written in the original, don't come for me π)
πΈ 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 ()
like, look at how tidy that is. no arguments. nothing to mess up. the vibes are immaculate β¨
π¦ DESCRIPTION π¦
so num_pes() or shmem_n_pes() return the total number of PEs running in an application. that's the whole description, bestie β it's giving "short and confident" and i am obsessed π
the way that this function just tells you how many of you there are?? main character energy fr fr π
π SEE ALSO
go read those next, iykyk π
π COPYRIGHT π
2003-2026, The Open MPI Community
π no warnings, no bugs, no dangers on this page β it's a clean run, bestie. go forth and count your PEs β¨
and that's the page!! πΈ written by the Open MPI Community, copyright 2003-2026, dated May 14, 2026 β mwah, slay, periodt π
ππ¦
π¦ where this page comes from
- arch rolling: nvhpc-comm-libs 26.9-1 Β· LicenseRef-NVIDIA-HPC-SDK
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms