WEDNESDAY, NOVEMBER 11, 2026
libgomp/nvptx
libgomp NVIDIA GPU plugin requires CUDA 8.0 or newer
libgomp's NVIDIA GPU plugin now requires compilation against CUDA 8.0 or newer.
The libgomp NVIDIA GPU plugin, by default, compiles against GCC’s bundled cuda.h header. This commit enforces that the CUDA version used for compilation is at least CUDA 8.0, aligning with the version provided by GCC. This change aims to prevent potential compatibility issues by ensuring a baseline CUDA version is met.
In Details
libgomp's NVIDIA GPU plugin compiles against an internal CUDA header unless overridden by PLUGIN_NVPTX_INCLUDE_SYSTEM_CUDA_H. This commit enforces that the bundled CUDA header, currently CUDA 8.0 (CUDA_VERSION 8000), must be used for compilation. This codifies a minimum CUDA version requirement for the plugin.
For Context
- libgomp
- The GNU implementation of the OpenMP API, providing support for parallel multithreading in C, C++, and Fortran.
- CUDA
- Compute Unified Device Architecture, a parallel computing platform and programming model created by NVIDIA for general computing on graphical processing units (GPUs).
- cuda.h
- A header file provided by NVIDIA's CUDA Toolkit that defines interfaces for CUDA C/C++ applications. GCC includes its own version for use with its NVPTX backend.
- NVPTX
- An NVIDIA PTX (Parallel Thread Execution) backend for GCC, allowing it to compile code for NVIDIA GPUs.