_MY_PE(3)

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

🌸 _MY_PE(3) β€” Open MPI 🌸

okay bestie, pull up a chair, because this one is adorably simple and honestly kind of iconic πŸ’…

✨ NAME ✨

shmem_my_pe <#shmem-my-pe>, my_pe, _my_pe β€” Returns the virtual PE number of the calling PE. literally just "who am I" but for parallel processes, no cap πŸ’–


✨ 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 ✨

so like, my_pe() or shmem_my_pe() return the processing element (PE) number of the calling PE. that's it. that's the whole vibe πŸ¦‹

it accepts no arguments β€” zero, none, nothing, it does not want your input, it already knows who it is πŸ‘‘

the result is an integer between 0 and npes - 1, where npes is the total number of PEs executing the current program. so if you're PE 7, you get 7. main character numbering, fr fr ✨

🌈 See also 🌈


2003-2026, The Open MPI Community


and that's a wrap, bestie πŸŽ€ this cutie dropped Sep 10, 2026, lives in the Open MPI collection, and answers to _MY_PE(3) if you ever need to find her again. go forth and know thy PE number πŸ«ΆπŸ’œ

πŸ“¦ where this page comes from