SHMEM_LONGLONG_SET(3)

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

πŸ’… SHMEM_LONGLONG_SET β€” Open MPI

okay bestie, gather round, because this is the manual page for SHMEM_LONGLONG_SET(3) in Open MPI and it's literally the friend group of set routines: 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 what do they all do? πŸ‘‘ They atomically set the value of a remote data object. periodt. πŸ’–


✨ NAME ✨

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) β€” Atomically sets the value of a remote data object πŸ¦‹

it's giving "one job, and they ate". πŸ™ˆ


🌸 SYNOPSIS 🌸

C or C++

#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

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)

no cap, that's the whole vibe check. πŸ‘‘


πŸ’œ DESCRIPTION πŸ’œ

so here's the tea πŸ“ β€” the set routines write the value into the address target on pe as an atomic operation. that's it. that's the whole personality. no half-finished writes, no drama, just slay. ✨

the arguments are as follows:

  • target β€” the remotely accessible data object to be set on the remote PE. like, this is the thing getting updated bestie 🫢
  • 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. if you're using Fortran, it must be a default integer value, okay? don't be trying anything cute with it. 😭
ngl, "atomically" is the main character here. the write either fully happens or it fully doesn't. no crumbs, no in-between. πŸ’…

⭐ RETURN VALUES ⭐

NONE πŸ’€

like it just... does the thing and leaves. iconic behaviour honestly.

See also:


and that's a wrap on the set girlies πŸŒˆπŸ’–

Copyright β€” 2003-2026, The Open MPI Community

this lil page was born Sep 10, 2026, written up by the Open MPI girlies, and the copyright has been held down by 2003-2026, The Open MPI Community the entire time. thanks for coming to my TED talk, ily, go set some remote values atomically πŸŽ€πŸ§š

πŸ“¦ where this page comes from