SHMEM_LONG_P(3)
π 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_pshmem_float_pshmem_int_pshmem_long_pshmem_short_pshmem_longlong_pshmem_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 toaddron 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 withshmem_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. useshmem_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:
intro_shmem(3)shmem_put(3)
π Copyright π
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
- 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