---
name: "shmem_pe_accessible"
section: "3"
platform: "linux"
package: "openmpi"
version: "5.0.11-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/shmem_pe_accessible"
---

# shmem\_pe\_accessible(3)

*shmem\_pe\_accessible* - Determines whether a processing element (PE) is accessible via SHMEM data transfer operations.

## SYNOPSIS

C:

```
#include <mpp/shmem.h>
int shmem_pe_accessible(int pe)
```

Fortran:

```
INCLUDE "mpp/shmem.fh"
LOGICAL LOG, SHMEM_PE_ACCESSIBLE
INTEGER pe
LOG = SHMEM_PE_ACCESSIBLE(pe)
```

## DESCRIPTION

*shmem\_pe\_accessible* returns a value that indicates whether the calling PE is able to perform OpenSHMEM communication operations with the remote PE.

## RETURN VALUES

- **C/C++**

  The return value is 1 if the specified PE is a valid remote PE for SHMEM functions; otherwise,it is 0.

- **Fortran**

  The return value is .TRUE. if the specified PE is a valid remote PE for SHMEM functions; otherwise, it is .FALSE..

**SEE ALSO:**

[*intro\_shmem*(3)](/intro_shmem/3.md) [*shmem\_addr\_accessible*(3)](/shmem_addr_accessible/3.md)

## COPYRIGHT

2003-2026, The Open MPI Community
