shmem_long_get

Purpose

Transfers data from a specified processing element (PE).

C syntax

#include <shmem.h>
 
void shmem_long_get(long *target, const long *source, size_t len, int pe);
 

Parameters

INPUT
target
Local data object to be updated.
source
Remotely accessible data object on the remote PE that contains the data to be copied.
len
Number of elements in the target and source arrays. len must be of type integer.
pe
Processing element number of the remote PE.

Description

This routine provides a high-performance method for copying a contiguous data object from the remote PE to a contiguous data object on the local PE

This routine returns when the data has been copied out of the source array on the local PE.

The function shmem_long_get() reads contiguous elements of type long from a remote PE.

IBM NOTES

Please refer to Atomicity and Coherency section for atomicity and coherence model in the OpenSHMEM documentation

C examples



Related information

Subroutines: shmem_barrier, shmem_put, shmem_fence, shmem_iput, shmem_quiet


OpenSHMEM API Index