SHMEM_LONG_P(3)

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

πŸ’– SHMEM_LONG_P(3) πŸ’–

okay bestie, welcome to the shmem_long_p page from the Open MPI manual, section 3. it's giving "tiny function, huge utility" and honestly? we're obsessed. πŸŽ€

this page is the whole girlgroup, not just one member, so let's meet the lineup:

  • shmem_char_p
  • shmem_float_p
  • shmem_int_p
  • shmem_long_p
  • shmem_short_p
  • shmem_longlong_p
  • shmem_longdouble_p

These routines provide a low latency mechanism to write basic types (char, short, int, float, double, long, long long, long double) to symmetric data objects on remote PEs. πŸ’…


✨ SYNOPSIS ✨

C or C++:

#include <mpp/shmem.h>

void shmem_char_p(char *addr, char value, int pe)

void shmem_short_p(short *addr, short value, int pe)

void shmem_int_p(int *addr, int value, int pe)

void shmem_long_p(long *addr, long value, int pe)

void shmem_longlong_p(long long *addr, long long value, int pe)

void shmem_float_p(float *addr, float value, int pe)

void shmem_double_p(double *addr, double value, int pe)

void shmem_longdouble_p(long double *addr, long double value, int pe)

🌸 DESCRIPTION 🌸

These routines provide a very low latency put capability for single elements of most basic types. single. one. element. she's efficient, she's fast, she's not doing too much. periodt. πŸ’«

The arguments are as follows:

  • addr β€” the remotely accessible array element or scalar data object which will receive the data on the remote PE. it's the lil mailbox on the other machine that the value gets dropped into πŸ“¬
  • value β€” the value to be transferred to addr on the remote PE. yes bestie, we're sending a whole value, no cap 🫢
  • pe β€” the number of the remote PE. that's the destination, the girl we're air-dropping the data to ✈️
🚨 important, do not skip!! As with shmem_put(3), these functions start the remote transfer and may return before the data is delivered to the remote PE. so like… the function can come home before the data does. use shmem_quiet(3) to force completion of all remote PUT transfers. forcing. completion. that's the vibe check you need before you trust it 🧚

See also:


2003-2026, The Open MPI Community


and that's the whole page, bestie πŸ’œ thank you for coming to my TED talk. this page ate and left no crumbs β€” Copyright 2003-2026, The Open MPI Community, last touched Sep 10, 2026, and it lives in the SHMEM_LONG_P(3) slot in the Open MPI manual. iykyk πŸŒˆπŸ’…

πŸ“¦ where this page comes from