SHMEM_FLOAT_IGET(3)
π¦β¨ SHMEM_FLOAT_IGET β¨π¦ β a page from the Open MPI manual, bestie edition
okay so. this is the strided-get page. it's a whole family, not just one function β like a friend group that all show up to the same party. π they grab a strided chunk of an array off a remote PE and drop it into your local memory. no cap.
π NAME π
shmem_complex_iget(3), shmem_double_iget(3), shmem_float_iget(3), shmem_iget4(3), shmem_iget8(3), shmem_iget32(3), shmem_iget64(3), shmem_iget128(3), shmem_int_iget(3), shmem_integer_iget(3), shmem_logical_iget(3), shmem_long_iget(3), shmem_longdouble_iget(3), shmem_longlong_iget(3), shmem_real_iget(3), shmem_short_iget(3)
β transfers strided data from a specified processing element (PE). that's the whole point. periodt. π
π SYNOPSIS π
C or C++
#include <mpp/shmem.h>
void shmem_iget32(void *target, const void *source,
ptrdiff_t tst, ptrdiff_t sst, size_t len, int pe)
void shmem_iget64(void *target, const void *source,
ptrdiff_t tst, ptrdiff_t sst, size_t len, int pe)
void shmem_iget128(void *target, const void *source,
ptrdiff_t tst, ptrdiff_t sst, size_t len, int pe)
void shmem_int_iget(int *target, const int *source,
ptrdiff_t tst, ptrdiff_t sst, size_t len, int pe)
void shmem_double_iget(double *target, const double *source,
ptrdiff_t tst, ptrdiff_t sst, size_t len, int pe)
void shmem_float_iget(float *target, const float *source,
ptrdiff_t tst, ptrdiff_t sst, size_t len, int pe)
void shmem_long_iget(long *target, const long *source,
ptrdiff_t tst, ptrdiff_t sst, size_t len, int pe)
void shmem_longdouble_iget(long double *target,
const long double *source, ptrdiff_t tst, ptrdiff_t sst,size_t len, int pe)
void shmem_longlong_iget(long long *target,
const long long *source, ptrdiff_t tst, ptrdiff_t sst, size_t len, int pe)
void shmem_short_iget(short *target,
const short *source, ptrdiff_t tst, ptrdiff_t sst, size_t len, int pe)
Fortran
INCLUDE "mpp/shmem.fh"
INTEGER tst, sst, len, pe
CALL SHMEM_COMPLEX_IGET(target, source, tst, sst, len,
& pe)
CALL SHMEM_DOUBLE_IGET(target, source, tst, sst, len,
& pe)
CALL SHMEM_IGET4(target, source, tst, sst, len, pe)
CALL SHMEM_IGET8(target, source, tst, sst, len, pe)
CALL SHMEM_IGET32(target, source, tst, sst, len, pe)
CALL SHMEM_IGET64(target, source, tst, sst, len, pe)
CALL SHMEM_IGET128(target, source, tst, sst, len, pe)
CALL SHMEM_INTEGER_IGET(target, source, tst, sst, len,
& pe)
CALL SHMEM_LOGICAL_IGET(target, source, tst, sst, len,
& pe)
CALL SHMEM_REAL_IGET(target, source, tst, sst, len, pe)
π DESCRIPTION π
so the strided get routines pull array data that lives at address source on a remote PE (pe). the elements of that source array are spaced apart by a stride sst. once the data actually arrives, it gets stored at the local memory address target, spaced apart by stride tst. and the routines don't return until the data has been copied into the local target array. like, they wait. they're loyal. π«Ά
the arguments, bestie π
targetβ the array that gets updated on the local PE. this is your array.sourceβ the array holding the data to be copied, living on the remote PE.tstβ the stride between consecutive elements of the target array. it's scaled by the element size of the target array. a value of1means the data is contiguous.tstmust be of type integer β and if you're calling from Fortran, it must be a default integer value.sstβ the stride between consecutive elements of the source array. it's scaled by the element size of the source array. a value of1means the data is contiguous.sstmust be of type integer β and if you're calling from Fortran, it must be a default integer value.lenβ number of elements in the target and source arrays.lenmust be of type integer. if you're using Fortran, it must be a constant, variable, or array element of default integer type.peβ the PE number of the remote PE.pemust be of type integer. if you're using Fortran, it must be a constant, variable, or array element of default integer type.
typing constraints (the target and source data objects MUST conform) β οΈ
like, this is not a suggestion, bestie. the target and source data objects must conform to these typing constraints. it's giving β¨mandatoryβ¨.
shmem_iget32,shmem_iget4: any noncharacter type that has a storage size equal to 32 bits.shmem_iget64,shmem_iget8: any noncharacter type that has a storage size equal to 64 bits.shmem_iget128: any noncharacter type that has a storage size equal to 128 bits.shmem_short_iget: elements of typeshort.shmem_int_iget: elements of typeint.shmem_long_iget: elements of typelong.shmem_longlong_iget: elements of typelong long.shmem_float_iget: elements of typefloat.shmem_double_iget: elements of typedouble.shmem_longdouble_iget: elements of typelong double.SHMEM_COMPLEX_IGET: elements of type complex of default size.SHMEM_DOUBLE_IGET: (Fortran) elements of type double precision.SHMEM_INTEGER_IGET: elements of type integer.SHMEM_LOGICAL_IGET: elements of type logical.SHMEM_REAL_IGET: elements of type real.
and then, because she believes in saying it twice so you really get it, the list goes again: π
shmem_longdouble_iget: elements of typelong double.SHMEM_COMPLEX_IGET: elements of type complex of default size.SHMEM_DOUBLE_IGET: (Fortran) elements of type double precision.SHMEM_INTEGER_IGET: elements of type integer.SHMEM_LOGICAL_IGET: elements of type logical.SHMEM_REAL_IGET: elements of type real.
oh and if you're using Fortran, data types must be of default size. for example, a real variable must be declared as REAL, REAL*4, or REAL(KIND=4). no fancy sizes, bestie. default or nothing. πΈ
π NOTES π
go read intro_shmem(3) for a definition of the term remotely accessible. it's important, iykyk. π
π EXAMPLES π
here's a cute little Fortran program using shmem_logical_iget. compile this example with the -lsma compiler option, okay? don't forget, that's the whole vibe. π
PROGRAM STRIDELOGICAL
LOGICAL SOURCE(10), TARGET(5)
SAVE SOURCE ! SAVE MAKES IT REMOTELY ACCESSIBLE
DATA SOURCE /.T.,.F.,.T.,.F.,.T.,.F.,.T.,.F.,.T.,.F./
DATA TARGET / 5*.F. /
CALL START_PES(2)
IF (MY_PE() .EQ. 0) THEN
CALL SHMEM_LOGICAL_IGET(TARGET, SOURCE, 1, 2, 5, 1)
PRINT*,'TARGET AFTER SHMEM_LOGICAL_IGET:',TARGET
ENDIF
CALL SHMEM_BARRIER_ALL
END
see also: intro_shmem(3) shmem_get(3) shmem_quiet(3) β go read those next, bestie. π
Copyright 2003-2026, The Open MPI Community. like, thank you for your service. π«‘
this page dropped Sep 10, 2026, straight from the Open MPI manual, page SHMEM_FLOAT_IGET(3). okay bye, go write something that slays. πβ¨π¦
π¦ 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