SHMEM_LONGLONG_G(3)

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

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

go read those next, they're lowkey iconic πŸ¦‹


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