SHMEM
SHMEM (from Cray Research's “shared memory” library ) is a family of parallel programming libraries, providing one-sided, RDMA, parallel-processing interfaces for low-latency distributed-memory supercomputers.[src] The SHMEM acronym was subsequently reverse engineered to mean "Symmetric Hierarchical MEMory”.[src] Later it was expanded to distributed memory parallel computer clusters, and is used as parallel programming interface or as low-level interface to build partitioned global address space (PGAS) systems and languages.[src] “Libsma”, the first SHMEM library, was created by Richard Smith at Cray Research in 1993 as a set of thin interfaces to access the CRAY T3D's inter-processor-communication hardware.[src] SHMEM has been implemented by Cray Research, SGI, Cray Inc., Quadrics, HP, GSHMEM, IBM, QLogic, Mellanox, Universities of Houston and Florida, Stony Brook University, and Texas-Tech University; there is also open-source OpenSHMEM.[src] SHMEM laid the foundations for low-latency (sub-microsecond) one-sided communication.[src] After its use on the CRAY T3E, its popularity waned as few machines could deliver the near-microsecond latencies necessary to maintain efficiency for its hallmark individual-word communication.…[src]
SHMEM (from Cray Research's “shared memory” library ) is a family of parallel programming libraries, providing one-sided, RDMA, parallel-processing interfaces for low-latency distributed-memory supercomputers.[src] The SHMEM acronym was subsequently reverse engineered to mean "Symmetric Hierarchical MEMory”.[src] Later it was expanded to distributed memory parallel computer clusters, and is used as parallel programming interface or as low-level interface to build partitioned global address space (PGAS) systems and languages.[src] “Libsma”, the first SHMEM library, was created by Richard Smith at Cray Research in 1993 as a set of thin interfaces to access the CRAY T3D's inter-processor-communication hardware.[src] SHMEM has been implemented by Cray Research, SGI, Cray Inc., Quadrics, HP, GSHMEM, IBM, QLogic, Mellanox, Universities of Houston and Florida, Stony Brook University, and Texas-Tech University; there is also open-source OpenSHMEM.[src] SHMEM laid the foundations for low-latency (sub-microsecond) one-sided communication.[src] After its use on the CRAY T3E, its popularity waned as few machines could deliver the near-microsecond latencies necessary to maintain efficiency for its hallmark individual-word communication.[src] With the advent of popular sub-microsecond interconnects, SHMEM has been used to address the necessity of hyper-efficient, portable, parallel-communication methods for exascale computing.[src] Programs written using SHMEM can be started on several computers, connected together with some high-performance network, supported by used SHMEM library.[src] Every computer runs a copy of a program (SPMD); each copy is called PE (processing element).[src] PEs can ask the SHMEM library to do remote memory-access operations, like reading ("shmem_get" operation) or writing ("shmem_put" operation) data.[src] Peer-to-peer operations are one-sided, which means that no active cooperation from remote thread is needed to complete the action (but it can poll its local memory for changes using "shmem_wait").[src] Operations can be done on short types like bytes or words, or on longer datatypes like arrays, sometimes evenly strided or indexed (only some elements of array are sent).[src] For short datatypes, SHMEM can do atomic operations (CAS, fetch and add, atomic increment, etc.) even in remote memory.[src] Also there are two different synchronization methods: task control sync (barriers and locks) and functions to enforce memory fencing and ordering.[src] SHMEM has several collective operations, which should be started by all PEs, like reductions, broadcast, collect.[src] Every PE has some of its memory declared as "symmetric" segments (or shared memory area), and other memory is private.[src] Only "shared" memory can be accessed in one-sided operation from remote PEs.[src] Programmers can use static-memory constructs or shmem_malloc/shmem_free routines to create objects with symmetric addresses that span the PEs.[src] ==Disadvantages== In first years SHMEM was accessible only on some Cray Research machines (later additionally on SGI) equipped with special networks, limiting library widespread and being vendor lock-in (for example, Cray Research recommended to partially rewrite MPI programs to combine both MPI and shmem calls, which make the program non-portable to other clear-MPI environment).[src] SHMEM was not defined as standard, so there were created several incompatible variants of SHMEM libraries by other vendors.[src] Libraries had different include file names, different management function names for starting PEs or getting current PE id, and some functions were changed or not supported.[src] Variants of SHMEM libraries can run on top of any MPI library, even when a cluster has only non-RDMA optimized Ethernet, however the performance will be typically worse than other enhanced networking protocols.[src] Memory in shared region should be allocated using special functions ( / ), not with the system .[src] Many disadvantages of SHMEM have been overcome with the use of OpenSHMEM on popular sub-microsecond interconnects, driven by exascale development.[src] man intro_shmem (SGI TPL) - Introduction to the SHMEM programming model OpenSHMEM: an effort to create a specification for a standardized API for parallel programming in the Partitioned Global Address Space.[src]
33 sentences · 33 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"SHMEM." encyclopegia.org, 2026, https://encyclopegia.org/wiki/shmem. Accessed 25 November 2026.
Chicago
"SHMEM." encyclopegia.org. Accessed November 25, 2026. https://encyclopegia.org/wiki/shmem.
APA
encyclopegia.org. (2026). SHMEM. Retrieved November 25, 2026, from https://encyclopegia.org/wiki/shmem
Accessed November 25, 2026 · CC BY-SA 4.0 · citation page · JSON