Unified Shared Memory in OpenMP: Implementation, Programmability, and Performance on Intel Accelerators
Harald Servat, François Dugast, Alejandro Duran, Abhinav Gaba, Rakesh Krishnaiyer
Abstract
OpenMP 5.0 introduced the Unified Shared Memory (USM) feature through the requires directive. The feature simplifies the adoption of the OpenMP programming model by providing a unique and common address space between the accelerators and the host and allowing the access (dereference) of the same memory address on different devices, thus avoiding the burden of explicit data transfers to maintain the consistency between the address spaces. Hence, the feature eases quick prototyping and porting of applications to OpenMP with accelerators. In this paper, we introduce the Intel implementation for USM. We briefly discuss its implementation in the software stack (OS kernel, compiler, and runtime), then assess its adoption complexity in existing HPC applications using OpenMP for accelerators, and, finally, evaluate the performance of these applications when adopting USM on an Intel Battlemage GPU. USM is not expected to grant performance uplifts to already optimized applications with explicit, granular data-motion control and our results show an overhead with a geometric mean below 1.2x (1.03x seems achievable with further optimizations). Yet, in this paper we show there exist applications that benefit from this feature, making it attractive even for already ported applications.
Create a lesson
Related papers
EdgePace: Deadline- and Freshness-Aware LLM Scheduling on Unified-Memory Platforms
Shared title terminology · Teng Mei, Chengxuan Pei, Weijun Wang et al.
Fast and Flexible Spiking Network Simulations on Massively Distributed On-Chip Memory Accelerators
Shared title terminology · Catherine Mia Schöfmann, Jan Finkbeiner, Jan Vogelsang et al.
Performance Analysis of Low-Order, GPU-accelerated Finite Element Kernels using Kokkos
Shared title terminology · Fabian Böhm, Nils Kohl, Harald Köstler et al.
Accelerating Transfer-Learning-Based Autotuning with Predictive LLVM IR Performance Ranking
Shared title terminology · Md Arafat Hossain, Thomas Randall, Akash Dutta et al.
Accelerating Performance Inference over Closed Systems by Asymptotic Methods
Shared title terminology · Giuliano Casale
A Controlled Study of Memory Hierarchy Transitions in Quantum Circuit Simulation on Apple M4 Pro Unified Memory Architecture
Shared title terminology · Gyan Pratipat