SHMEM_LONG_G(3)
π SHMEM_LONG_G(3) β the Open MPI glow-up π
ok so bestie. this is one of those little Open MPI man pages and it's honestly giving β¨remote data fetchβ¨ but make it fashion. it's the shmem_long_g family, and yeah the filename says "long" but it's actually a whole squad of getters: shmem_char_g, shmem_float_g, shmem_int_g, shmem_long_g, shmem_short_g, shmem_longlong_g, and shmem_longdouble_g. π«Ά
these routines are the low latency besties π
β they read basic types (char, short, int, float, double, long, long long, long double) from symmetric data objects on remote PEs. no cap, that's the whole vibe.
β¨ 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)
every single one of those signatures is doing exactly what it looks like, and yes you gotta keep them character for character, bestie, do not freestyle. π
πΈ DESCRIPTION πΈ
these routines serve up a very low latency get capability for single elements of most basic types. that's it. that's the whole menu. one element, one type, one vibe check. π¦
it's giving "i just need one lil value off a remote PE and i need it like RIGHT NOW" energy, and honestly? iconic. π
the arguments are as follows:
addrβ the remotely accessible array element or scalar data object which will receive the data on the remote PE. πpeβ the number of the remote PE. that's the friend you're pulling the data from. π₯
lowkey important: addr is the thing that receives the data on the remote PE. read that twice, bestie, i'm not gonna repeat myself. π
π SEE ALSO π
intro_shmem(3)shmem_get(3)
go read intro_shmem(3) for the whole lore, and shmem_get(3) if you want the bigger, non-single-element energy. π
π COPYRIGHT π
2003β2026, The Open MPI Community. periodt. π
and that's the page, bestie! per the footer, this one's from the Open MPI crew, dated Sep 10, 2026, and the manual itself is titled SHMEM_LONG_G(3). slay, go fetch your single element, drink some water, and remember: one element at a time. βπΈπ
π¦ 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