SHMEM_MY_PE(3)
β¨ SHMEM_MY_PE(3) β¨
okay so bestie, we're in the Open MPI manpage corner of the internet and today's main character is shmem_my_pe π
this is the SHMEM_MY_PE(3) page, and it's literally about finding out who you are β well, which PE you are π¦
π NAME π
shmem_my_pe, my_pe, _my_pe β returns the virtual PE number of the calling PE. no cap, that's the whole vibe.
πΈ SYNOPSIS πΈ
C or C++:
#include <mpp/shmem.h>
int shmem_my_pe (void)
int my_pe (void)
Fortran:
include 'mpp/shmem.fh'
I = SHMEM_MY_PE ()
I = MY_PE ()
π DESCRIPTION π
okay so my_pe() or shmem_my_pe() return the processing element (PE) number of the calling PE. it takes no arguments β zero, nada, it just knows π§ it's giving "I already know who I am" energy, periodt.
the result is an integer between 0 and npes - 1, where npes is the total number of PEs executing the current program. so yes, the index starts at 0, bestie, not 1 β classic β¨
See also:
intro_shmem(3) shmem_n_pes(3) shmem_init(3)
π Copyright π
2003-2026, The Open MPI Community
and that's the whole page, bestie β short, sweet, iconic, ate π see u in the group chat, mwah π«Ά
SHMEM_MY_PE(3) Β· Open MPI Β· Sep 10, 2026 β
π¦ 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