arrow
Return

Programming GPUs with OpenMP and Python

delete2026-01-01
delete0
PRE
AI
G
Georgakoudis, Giorgis *
A
Anderson, Todd A.
A
Archibald, Stuart
D
de Supinskil, Bronis R.
M
Mattson, Timothy G.
DOI:10.1007/978-3-032-06343-4_14delete
deleteOriginal
deleteShare
deleteSave
Abstract

Abstract

En 中文
Python, the world's most popular programming language, offers high productivity and a vast, robust, production-level ecosystem. However, its use in HPC has generally been limited to regions that are not performance critical due to performance limitations that arise from it being an interpreted language, its implementation of thread-safety, and its lack of a general, well-defined approach to parallelization. Instead, performance critical code is typically implemented in low-level languages, such as C/C++, which limits access to Python's ecosystem. An earlier effort created PyOMP, an implementation of OpenMP in Python that demonstrated promising performance on CPUs but did not support GPUs. This paper presents our new design and implementation of PyOMP to support GPUs with significant extensions to interface Python to OpenMP GPU offloading and dynamic compilation. Using HPC proxy applications from HeCBench, we demonstrate performance competitive with OpenMP/GPU programs using C/C++ while maintaining the high productivity that has made Python so popular.
Keywords:
Python
OpenMP
GPU
High Performance Computing
Parallelization

Journal

O
OPENMP: BALANCING PRODUCTIVITY AND PERFORMANCE PORTABILITY, IWOMP 2025
IF:
0
Papers:
14
Citations:
1

Organization

L
Lawrence Livermore National Laboratory
Scholars:
866
Papers: 253
Citations: 3.8K
U
united states department of energy (doe)
Scholars:
11.3W
Papers: 9.6W
Citations: 17.6W
Cited Papers

Cited Papers

Productivity, portability, performance
err2021-11-13
err0
PREAI
errAlexandros Nikolaos Ziogas; Timo Schneider; Tal Ben-Nun; Alexandru Calotoiu; Tiziano De Matteis; Johannes de Fine Licht; Luca Lavarini; Torsten Hoefler
errShare
errSave
A performance portability framework for Python
err2021-06-04
err0
PREAI
errNader Al Awar; Steven Zhu; George Biros; Milos Gligoric
errShare
errSave
Quantifying OpenMP: Statistical Insights into Usage and Adoption
err2023-09-25
err0
errOAAI
errTal Kadosh; Niranjan Hasabnis; Timothy Mattson; Yuval Pinter; Gal Oren
errShare
errSave
PyCUDA and PyOpenCL: A scripting-based approach to GPU run-time code generation
err2012-03-01
err0
errOAAI
errAndreas Klöckner; Nicolas Pinto; Yunsup Lee; Bryan Catanzaro; Paul Ivanov; Ahmed Fasih
errShare
errSave
Numba
err2015-11-15
err0
PREAI
errSiu Kwan Lam; Antoine Pitrou; Stanley Seibert
errShare
errSave
PyOMP: Multithreaded Parallel Programming in Python
err2021-11-01
err0
errOAAI
errTimothy G. Mattson; Todd A. Anderson; Giorgis Georgakoudis
errShare
errSave
The Kokkos EcoSystem: Comprehensive Performance Portability for High Performance Computing
err2021-09-01
err0
errOAAI
errChristian Trott; Luc Berger-Vergiat; David Poliakoff; Sivasankaran Rajamanickam; Damien Lebrun-Grandie; Jonathan Madsen; Nader Al Awar; Milos Gligoric; Galen Shipman; Geoff Womeldorff
errShare
errSave
Taichi: A Language for High-Performance Computation on Spatially Sparse Data Structures
err2019-11-08
err186
errOAAI
errHu, Yuanming; Li, Tzu-Mao; Anderson, Luke; Ragan-Kelley, Jonathan; Durand, Fredo
errShare
errSave
The Ongoing Evolution of OpenMP
err2018-11-01
err38
errOAAI
errde Supinski, Bronis R.; Scogland, Thomas R. W.; Duran, Alejandro; Klemm, Michael; Bellido, Sergi Mateo; Olivier, Stephen L.; Terboven, Christian; Mattson, Timothy G.
errShare
errSave
researcher View more