SHMEM_LONGLONG_FINC(3)
π SHMEM_LONGLONG_FINC(3) β Open MPI energy π
Okay bestie, welcome to the Open MPI man page for SHMEM_LONGLONG_FINC(3) and its whole iconic crew π«Ά.
π NAME π
shmem_int4_finc(3)shmem_int8_finc(3)shmem_int_finc(3)shmem_long_finc(3)shmem_longlong_finc(3)
β Performs an atomic fetch-and-increment operation on a remote data object. Periodt. β¨
β¨ SYNOPSIS β¨
C or C++:
#include <mpp/shmem.h>
int shmem_int_finc(int *target, int pe)
long shmem_long_finc(long *target, int pe)
long long shmem_longlong_finc(long long *target, int pe)
Fortran:
INCLUDE "mpp/shmem.fh"
INTEGER pe
INTEGER(KIND=4) SHMEM_INT4_FINC, target4
INTEGER(KIND=8) SHMEM_INT8_FINC, target8
ires4 = SHMEM_INT4_FINC(target4, pe)
ires8 = SHMEM_INT8_FINC(target8, pe)
π¦ DESCRIPTION π¦
The fetch-and-increment routines are giving atomic main character energy: they retrieve the value at address target on PE pe, then update target with the result of incrementing that retrieved value by one. The whole operation must be completed without the possibility of another process updating target between the time of the fetch and the update. No sneaky little interleaving, okay? π
The arguments are as follows:
targetβ The remotely accessible integer data object to be updated on the remote PE. The type oftargetshould match that implied in the SYNOPSIS section. Type match = vibe match. πpeβ An integer that indicates the PE number upon whichtargetis to be updated. If you are using Fortran, it must be a default integer value. Fortran bestie, donβt forget that part. π«Ά
π§ NOTES π§
The term remotely accessible is defined in intro_shmem(3). iykyk π
π RETURN VALUES π
The contents that had been at the target address on the remote PE prior to the increment. So you get the old value back β the before picture, basically. πΈ
π SEE ALSO π
π COPYRIGHT π
2003-2026, The Open MPI Community
Signed with love by your Open MPI bestie π«Άπ β source/version: Open MPI, dated May 14, 2026. Copyright 2003-2026, The Open MPI Community. Mwah πβ¨
π¦ where this page comes from
- arch rolling: nvhpc-comm-libs 26.9-1 Β· LicenseRef-NVIDIA-HPC-SDK
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms