SHMEM_FLOAT_G(3)

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

πŸ¦‹ SHMEM_FLOAT_G(3) β€” the Open MPI girlies' guide to grabbing singles πŸ¦‹

okay bestie, listen up πŸ’… this is the Open MPI man page for a whole lil family of functions that are all about one thing: yanking a single basic-type value out of a symmetric data object sitting on a remote PE. Low latency. No cap. ✨

The squad is: shmem_char_g, shmem_float_g, shmem_int_g, shmem_long_g, shmem_short_g, shmem_longlong_g, shmem_longdouble_g 🫢 β€” and together they "provide a low latency mechanism to read basic types (char, short, int, float, double, long, long long, long double) from symmetric data objects on remote PEs."

So yeah, it's giving remote read, but make it tiny. 🌸


✨ SYNOPSIS ✨

C or C++:

#include <mpp/shmem.h>

char shmem_char_g(const char *addr, int pe)

short shmem_short_g(const short *addr, int pe)

int shmem_int_g(const int *addr, int pe)

long shmem_long_g(const long *addr, int pe)

long shmem_longlong_g(const long long *addr, int pe)

float shmem_float_g(const float *addr, int pe)

double shmem_double_g(const double *addr, int pe)

long shmem_longdouble_g(const long double *addr, int pe)

yes bestie, that's eight whole functions and they're all built different but somehow the same 😭 copy them exactly, don't freestyle.


πŸ’– DESCRIPTION πŸ’–

These routines provide a very low latency get capability for single elements of most basic types. πŸŽοΈπŸ’¨

Translation for the group chat: you want one element β€” one float, one int, one lil guy β€” from somewhere on another PE, and you want it fast. That's the whole vibe. Not a whole array, not a block, just the single serving. πŸ“

The arguments are as follows:

  • addr β€” The remotely accessible array element or scalar data object which will receive the data on the remote PE. πŸ‘‘ (yes, "receive" β€” that's what the page says, love that for it)
  • pe β€” The number of the remote PE. πŸ”’
lowkey the pe is just which remote PE you're sliding into, and addr is where on that side the data lives. iykyk πŸ’…

πŸ‘― See also πŸ‘―

(go read those too, fr fr, they're the main character energy this page is opening for 🌈)


2003-2026, The Open MPI Community


okay that's the whole page, you ate that πŸ’… stay slaying, run your gets, and remember: one element at a time, bestie. πŸ’–βœ¨ no notes. periodt.

🫢 that was SHMEM_FLOAT_G(3) from the Open MPI crew β€” this edition lovingly dated Sep 10, 2026 πŸŽ€

πŸ“¦ where this page comes from