_MY_PE(3)
πΈ _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 π
π Copyright π
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
- 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