SHMEM_ADDR_ACCESSIBLE(3)
π SHMEM_ADDR_ACCESSIBLE(3) β an Open MPI moment
okay bestie, so this one is from Open MPI and it's called shmem_addr_accessible β and no, it's not asking if you're accessible, it's asking if an address is π
πΈ NAME
shmem_addr_accessible β tells you whether an address is reachable through OpenSHMEM operations from whichever remote PE you point at. literally a vibe check for pointers β¨
π SYNOPSIS
C or C++:
#include <mpp/shmem.h>
int shmem_addr_accessible(const void *addr, int pe)
Fortran:
INCLUDE "mpp/shmem.fh"
LOGICAL LOG, SHMEM_ADDR_ACCESSIBLE
INTEGER pe
LOG = SHMEM_ADDR_ACCESSIBLE(addr, pe)
like, yes, Fortran is still here and she's thriving π«Ά
π¦ DESCRIPTION
So shmem_addr_accessible is a query function β a little gossip session, basically. You hand it a local address, and it tells you whether that address can be accessed via SHMEM operations from the remote PE you specified. π
What it's actually confirming, fr fr:
- that the remote PE is accessible from the local PE using SHMEM data transfer functions, and
- that the address you gave lives in a symmetric data segment with respect to that remote PE.
both boxes checked? iconic. one missing? she'll let you know. π
ngl this is the "are we actually besties or not" function and I respect it for that.
β RETURN VALUES
C: you get 1 back if addr is a symmetric data object and it's accessible via SHMEM operations from the specified remote PE β otherwise it's 0. no in-between, no "it's complicated". π
Fortran: same energy, different spelling β the return is .TRUE. if addr is a symmetric data object and accessible via SHMEM operations from the specified remote PE; otherwise it's .FALSE.. (yes there are two periods there at the end of the sentence, that's just how she types π)
π SEE ALSO
go read those too, iykyk π
π§ COPYRIGHT
2003-2026, The Open MPI Community β the whole squad, holding it down since '03. π
and that's the page, bestie!! π source & version: Open MPI, dated May 14, 2026 β catch you in the next man page, mwah ππβ¨
π¦ 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