1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
|
.. _shmem_addr_accessible:
shmem_addr_accessible
=====================
.. include_body
:ref:`shmem_addr_accessible` - Indicates if an address is accessible via
OpenSHMEM operations from the specified remote PE.
SYNOPSIS
--------
C or C++:
.. code-block:: c++
#include <mpp/shmem.h>
int shmem_addr_accessible(const void *addr, int pe)
Fortran:
.. code-block:: fortran
INCLUDE "mpp/shmem.fh"
LOGICAL LOG, SHMEM_ADDR_ACCESSIBLE
INTEGER pe
LOG = SHMEM_ADDR_ACCESSIBLE(addr, pe)
DESCRIPTION
-----------
:ref:`shmem_addr_accessible` is a query function that indicates whether a local
address is accessible via SHMEM operations from the specified remote PE.
This function verifies that the remote PE is accessible via SHMEM data
transfer functions from the local PE, and that the specified address is
in a symmetric data segment with respect to the remote PE.
RETURN VALUES
-------------
C: The return value is 1 if addr is a symmetric data object and
accessible via SHMEM operations from the specified remote PE; otherwise,
it is 0.
Fortran: The return value is .TRUE. if addr is a symmetric data object
and accessible via SHMEM operations from the specified remote PE;
otherwise, it is .FALSE..
.. seealso::
*intro_shmem*\ (3) *shmem_pe_accessible*\ (3)
|