SHMEM_DOUBLE_SET(3)
π SHMEM_DOUBLE_SET β Atomically sets the value of a remote data object π
okay bestie, listen up. This is the shmem_double_set(3) page from the Open MPI manual (that's the SHMEM_DOUBLE_SET(3) of it all), and honestly? It's a whole little family of functions and they all do the same iconic thing. The gang includes:
shmem_double_set(3)shmem_float_set(3)shmem_int_set(3)shmem_long_set(3)shmem_longlong_set(3)shmem_int4_set(3)shmem_int8_set(3)shmem_real4_set(3)shmem_real8_set(3)
and their whole job description is: atomically sets the value of a remote data object. yes queen, remote. we're reaching across PEs and touching data like it's nothing. π
β¨ SYNOPSIS β¨
C or C++ peeps, besties:
#include <mpp/shmem.h>
void shmem_double_set(double *target, double value, int pe)
void shmem_float_set(float *target, float value, int pe)
void shmem_int_set(int *target, int value, int pe)
void shmem_long_set(long *target, long value, int pe)
void shmem_longlong_set(long long *target, long long value, int pe)
Fortran girlies, this one's for you πΈ:
INCLUDE "mpp/shmem.fh"
INTEGER pe
CALL SHMEM_INT4_SET(target, value, pe)
CALL SHMEM_INT8_SET(target, value, pe)
CALL SHMEM_REAL4_SET(target, value, pe)
CALL SHMEM_REAL8_SET(target, value, pe)
π¦ DESCRIPTION π¦
The set routines write the value into the address target on pe as an atomic operation. no half-finished writes, no messy in-between state, it's giving one clean swoop. obsessed. β¨
The arguments are as follows:
targetβ The remotely accessible data object to be set on the remote PE. πvalueβ The value to be atomically written to the remote PE. πpeβ An integer that indicates the PE number upon whichtargetis to be updated. π₯ And heads up if you're on the Fortran side: it must be a defaultintegervalue. fr fr, no fancy types here.
π RETURN VALUES π
NONE π β that's it, that's the whole list. It returns nothing because it doesn't need to, main character energy.
See also:
intro_shmem(3)β go read it, it's the lore. π
π Copyright π
2003-2026, The Open MPI Community
and that's the tea, bestie π β that page came straight out of the Open MPI manual, dated Sep 10, 2026, filed under SHMEM_DOUBLE_SET(3). slay, go set some remote values. π«Άπ
π¦ 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