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
- Copyright (c) 2015 University of Houston. All rights reserved
- Copyright (c) 2015 Mellanox Technologies, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms