SHMEM_FLOAT_G(3)
π¦ 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 thepeis just which remote PE you're sliding into, andaddris where on that side the data lives. iykyk π
π― See also π―
intro_shmem(3)shmem_get(3)
(go read those too, fr fr, they're the main character energy this page is opening for π)
π Copyright π
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
- 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