SHMEM_LONG_G(3)

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

πŸ’– 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 πŸ‘€

go read intro_shmem(3) for the whole lore, and shmem_get(3) if you want the bigger, non-single-element energy. 🌈


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