SHMEM_DOUBLE_P(3)
π SHMEM_DOUBLE_P(3) β Open MPI's low-key legendary put squad πΈ
okay bestie, so this page is technically filed under SHMEM_DOUBLE_P(3), but it's really the whole girl group: it's covering shmem_char_p <#shmem-char-p>(3), shmem_float_p <#shmem-float-p>(3), shmem_int_p <#shmem-int-p>(3), shmem_long_p <#shmem-long-p>(3), shmem_short_p <#shmem-short-p>(3), shmem_longlong_p <#shmem-longlong-p>(3), and shmem_longdouble_p <#shmem-longdouble-p>(3) β and they're all serving the same thing: 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. literally the express lane of remote writes, no cap. π
So the arguments go like this:
addrβ the remotely accessible array element or scalar data object which will receive the data on the remote PE. it's giving "the address that's receiving the gift" πvalueβ the value to be transferred toaddron the remote PE. the actual thing you're sending, bestie πpeβ the number of the remote PE. that's the PE getting the package π¦
β οΈ okay so important vibe check: as withshmem_put(3), these functions start the remote transfer and may return before the data is delivered to the remote PE. so if you need to know it actually landed, useshmem_quiet<#shmem-quiet>(3) to force completion of all remote PUT transfers. do not skip this step, I'm begging π
See also: intro_shmem(3) shmem_put(3)
π Copyright π
2003-2026, The Open MPI Community
and that's the whole page, bestie π«Ά slay responsibly. this iconic little dispatch came from the Open MPI manual and it's dated Sep 10, 2026 β so go forth and shmem_quiet your way to victory πβ¨π§
π¦ 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