SHMEM_DOUBLE_SET(3)

πŸ“¦
version 5.0.10 Β· 4 versions
, in ubuntu stonking

πŸ’– 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:

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 which target is to be updated. πŸ”₯ And heads up if you're on the Fortran side: it must be a default integer value. 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:


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