SHMEM_INT_P(3)

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

πŸ’– NAME πŸ’–

okay so gather round bestie 🫢 β€” this page is the whole girl-group of <italic>-p</italic> put functions from Open MPI: shmem_char_p(3), shmem_float_p(3), shmem_int_p(3), shmem_long_p(3), shmem_short_p(3), shmem_longlong_p(3), and shmem_longdouble_p(3).

The way these routines are literally a low latency mechanism to write basic types β€” <cyan>char</cyan>, <cyan>short</cyan>, <cyan>int</cyan>, <cyan>float</cyan>, <cyan>double</cyan>, <cyan>long</cyan>, <cyan>long long</cyan>, <cyan>long double</cyan> β€” to symmetric data objects on remote PEs. no cap, that's the whole vibe check. πŸ’…


✨ SYNOPSIS ✨

C or C++ gang, this is your moment πŸŽ€

#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 serve up a very low latency put capability for single elements of most basic types. it's giving "one tiny value, beamed across the network, zero drama" ✨

πŸ¦‹ The arguments πŸ¦‹

  • addr β€” the remotely accessible array element or scalar data object which will receive the data on the remote PE πŸ‘‘ (yes bestie, remotely accessible, don't get cute with it)
  • value β€” the value to be transferred to addr on the remote PE πŸ’–
  • pe β€” the number of the remote PE 🌈

πŸ’€ the important caveat πŸ’€

As with shmem_put(3), these functions start the remote transfer and may return before the data is delivered to the remote PE.

not me returning early while my data is still in transit πŸ™ˆ if you need it done done, use shmem_quiet(3) to force completion of all remote PUT transfers. periodt.

πŸ‘€ See also:

  • intro_shmem(3)
  • shmem_put(3)

2003-2026, The Open MPI Community

and that's a wrap, babes β€” this page came to you from Open MPI, dated Sep 10, 2026, page title SHMEM_INT_P(3). go put some values on some PEs, you absolute icon πŸ’œπŸ”₯⭐

πŸ“¦ where this page comes from