SHMEM_LONGLONG_G(3)
π SHMEM_LONGLONG_G π
okay bestie, so this is the Open MPI family of get routines β and there's a whole squad of them: shmem_char_g, shmem_float_g, shmem_int_g, shmem_long_g, shmem_short_g, shmem_longlong_g, and shmem_longdouble_g. They're all on the same page (literally β¨) because they do the same little job, just for different types.
So what do they actually do?? These routines provide a low latency mechanism to read basic types β and when I say basic types I mean char, short, int, float, double, long, long long, and long double β from symmetric data objects on remote PEs. grabbing one lil value off another PE's memory? that's the 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)
like, pick the one that matches the type you're yanking. no cap, that's the whole synopsis. π
πΈ DESCRIPTION πΈ
These routines provide a very low latency get capability for single elements of most basic types. one element. one type. very fast. that's it, that's the function. π
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 β read that one twice, bestie, it's a little plot twist π« )peβ the number of the remote PE. aka which PE we're pulling from. main character's PE number. π
A "get" means you're pulling one value from a remote PE, so the address you hand over is the thing receiving the data over there. fr fr, that's exactly what it says and I am not adding a single thing more. π
π See also π
intro_shmem(3)shmem_get(3)
go read those next, they're lowkey iconic π¦
π Copyright π
2003-2026, The Open MPI Community
and that's the whole page, bestie!! π shoutout the Open MPI girlies for this one β this is the Open MPI manual, page SHMEM_LONGLONG_G(3), dated Sep 10, 2026. slay, read responsibly, and go get those symmetric data objects. periodt. π β¨πΈπ¦π
π¦ 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