SHMEM_DOUBLE_FETCH(3)
β¨ SHMEM_DOUBLE_FETCH β¨ (aka the Open MPI girlies' atomic fetch page)
Hiiii bestie π okay so this is the manual page for SHMEM_DOUBLE_FETCH(3) from Open MPI, and it's literally the page for the whole fetch girl gang β shmem_int4_fetch(3), shmem_int8_fetch(3), shmem_int_fetch, shmem_long_fetch, shmem_longlong_fetch, shmem_double_fetch, and shmem_float_fetch πΈ
They all do one iconic thing: atomically fetch the value of a remote data object. No cap. π«Ά
π NAME
shmem_int4_fetch(3),shmem_int8_fetch(3),shmem_int_fetch,shmem_long_fetch,shmem_longlong_fetch,shmem_double_fetch,shmem_float_fetchβ atomically fetches the value of a remote data object π
π 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)
πΈ DESCRIPTION
Okay so listen β the shmem_fetch functions do an atomic fetch operation β¨. They hand you back the contents of the target, and they do it atomically. That's the whole moment. That's the vibe. Obsessed. π
The arguments are giving:
targetβ the remotely accessible data object we're fetching from the remote PE. It's the main character here π«Άpeβ an integer that says which PE numbertargetis gonna be fetched from. And heads up bestie, if you're doing Fortran, this one must be a default integer value β οΈ
π₯ RETURN VALUES
You get back the contents at the target address on the remote PE π« and the data type of the return value is the same as the type of the remote data object. Matching energy, fr fr. β¨
π See also:
π Copyright
2003-2026, The Open MPI Community
And that's the whole page babes π it's from Open MPI, dated Sep 10, 2026, and it's literally iconic. Go fetch (atomically) π β¨π¦
π¦ where this page comes from
- ubuntu stonking: openmpi-doc 5.0.10-6 Β· other
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms