SHMEM_MY_PE(3)

πŸ’… SHMEM_MY_PE(3) β€” Open MPI πŸ’…

okay so this page is literally the Open MPI manual for SHMEM_MY_PE(3), and it's all about that iconic question: β€œbestie, which PE am I?” ✨


πŸŽ€ NAME πŸŽ€

  • shmem_my_pe, my_pe, _my_pe β€” returns the virtual PE number of the calling PE. all three names are on the invite list, no cap. 🫢

✨ SYNOPSIS ✨

C or C++ besties:

#include <mpp/shmem.h>
int shmem_my_pe (void);
int my_pe (void);

Fortran besties:

include 'mpp/shmem.fh'
I = SHMEM_MY_PE ()
I = MY_PE ()

🌸 DESCRIPTION 🌸

my_pe() or shmem_my_pe() return the processing element (PE) number of the calling PE. it accepts no arguments β€” none, zero, not a single one, periodt. πŸ™ˆ

the result is an integer between 0 and npes - 1, where npes is the total number of PEs executing the current program. so you're somewhere in that range, and that's your PE number. iconic. πŸ‘‘

πŸ¦‹ SEE ALSO πŸ¦‹


cute little footer sign-off: this page comes from gitclone, version Unreleased developer copy, and the page name is SHMEM_MY_PE(3). no date printed in the footer, bestie β€” just those vibes. πŸ«ΆπŸ’–

πŸ“¦ 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