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 🌈


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