SHMEM_ADDR_ACCESSIBLE(3)
π SHMEM_ADDR_ACCESSIBLE π
okay bestie, gather round, we're doing a vibe check on memory addresses today β¨ this is shmem_addr_accessible from the Open MPI manual, section 3, and it answers the question every distributed-memory girlie eventually asks: is this address even reachable from that other PE? π¦
Basically: it tells you whether an address is accessible via OpenSHMEM operations from the specified remote PE. That's it. That's the whole gig. π
π SYNOPSIS π
C or C++ girlies, you're gonna:
#include <mpp/shmem.h>
int shmem_addr_accessible(const void *addr, int pe)
Fortran besties, this is your moment:
INCLUDE "mpp/shmem.fh"
LOGICAL LOG, SHMEM_ADDR_ACCESSIBLE
INTEGER pe
LOG = SHMEM_ADDR_ACCESSIBLE(addr, pe)
π«Ά DESCRIPTION π«Ά
shmem_addr_accessible is a query function. It does not change anything, it does not move anything, it just π looks.
What it's telling you: whether a local address is accessible via SHMEM operations from the specified remote PE. So like, from the local PE's point of view, can that remote PE actually get to this address? π
It's checking two things, lowkey both of them matter:
- the remote PE is accessible via SHMEM data transfer functions from the local PE, and
- the address you handed it lives in a symmetric data segment with respect to that remote PE.
Both boxes ticked? You're slaying. One box unticked? It's giving 0, bestie. π
β¨ RETURN VALUES β¨
C girlies get numbers, Fortran girlies get vibes:
- C: the return value is
1ifaddris a symmetric data object and accessible via SHMEM operations from the specified remote PE; otherwise, it is0. - Fortran: the return value is
.TRUE.ifaddris a symmetric data object and accessible via SHMEM operations from the specified remote PE; otherwise, it is.FALSE..
ngl this one is a yes/no situation and that's the entire personality. no cap. π
πΈ SEE ALSO πΈ
go read these next, iykyk:
π COPYRIGHT π
2003-2026, The Open MPI Community β iconic behavior from the Open MPI Community, protecting this knowledge since 2003 fr fr π
and that's the whole page, bestie!! this was the SHMEM_ADDR_ACCESSIBLE(3) page from Open MPI, and it came to you dated Sep 10, 2026 ππ mwah, go check your addresses, love u π
π¦ 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