SHMEM_FETCH(3)
okay bestie, welcome to SHMEM_FETCH(3) from Open MPI π this page is all about the fetch girlies and they are lowkey iconic.
π NAME π
shmem_int4_fetch(3), shmem_int8_fetch(3), shmem_int_fetch(3), shmem_long_fetch(3), shmem_longlong_fetch(3), shmem_double_fetch(3), shmem_float_fetch(3) β these besties atomically fetch the value of a remote data object. periodt. π
β¨ SYNOPSIS β¨
C or C++:
#include <mpp/shmem.h>
int shmem_int_fetch(int *target, int pe);
long shmem_long_fetch(long *target, int pe);
long long shmem_longlong_fetch(long long *target, int pe);
double shmem_double_fetch(long long *target, int pe);
float shmem_float_fetch(float *target, int pe);
Fortran:
INCLUDE "mpp/shmem.fh"
INTEGER pe
INTEGER(KIND=4) SHMEM_INT4_FETCH, ires, target
ires = SHMEM_INT4_FETCH(target, pe)
INTEGER(KIND=8) SHMEM_INT8_FETCH, ires, target
ires = SHMEM_INT8_FETCH(target, pe)
REAL(KIND=4) SHMEM_INT4_FETCH, ires, target
ires = SHMEM_REAL4_FETCH(target, pe)
REAL(KIND=8) SHMEM_INT8_FETCH, ires, target
ires = SHMEM_REAL8_FETCH(target, pe)
copy those exactly, bestie β character for character, no βfixingβ the iconic quirks. π
π¦ DESCRIPTION π¦
The shmem_fetch functions perform an atomic fetch operation. They return the contents of the target as an atomic operation. no cap, thatβs the whole vibe. β¨
The arguments are as follows:
targetβ the remotely accessible data object to be fetched from the remote PE. πpeβ an integer that indicates the PE number from whichtargetis to be fetched. If you are using Fortran, it must be a default integer value. πΈ
π RETURN VALUES π
The contents at the target address on the remote PE. The data type of the return value is the same as the type of the remote data object. π«
π SEE ALSO π
intro_shmem(3)β go read that one next, bestie. π«Ά
mwah π β this page came from the gitclone source tree, version Unreleased developer copy; the date slot is not printed in this footer, and honestly the footer ate. π β¨
π¦ where this page comes from
- arch rolling: nvhpc-comm-libs 26.9-1 Β· LicenseRef-NVIDIA-HPC-SDK
- opensuse-leap 16.0: openmpi4-docs 4.1.8-160000.3.1 Β· BSD-3-Clause
- opensuse-leap 16.0: openmpi4-docs 4.1.8-160000.3.1 Β· BSD-3-Clause
- opensuse-leap 16.0: openmpi4-docs 4.1.8-160000.3.1 Β· BSD-3-Clause
- opensuse-leap 16.0: openmpi4-docs 4.1.8-160000.3.1 Β· BSD-3-Clause
- Copyright (c) 2016 Mellanox Technologies, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms