OpenMP ARB Releases OpenMP 5.1

Print Friendly, PDF & Email

Austin, TX – November 13, 2020 – The OpenMP Architecture Review Board (ARB) has released Version 5.1 of the OpenMP API. With this release of the standard, OpenMP strengthens its handling of accelerator devices, allows improved optimization and supports the latest versions of C, C++ and Fortran.

“OpenMP 5.1 represents the culmination of the past two years of work within the OpenMP Language Committee,” said Bronis R. de Supinski, the LC Chair. “While the primary focus has been enhancements, clarifications and corrections to the 5.0 specification, we have added several useful new features, such as support for interoperability with lower level APIs like CUDA and HIP.”

Version 5.1 of the OpenMP specification was jointly developed by the OpenMP ARB, a group of major computer hardware and software vendors, as well as users throughout the OpenMP community. The updated specification includes the following key additions:

Improvements in accelerator device interactions:

o The interop construct, which enables interoperability with non-OpenMP device execution contexts, provides support for interactions with native device interfaces (e.g., for CUDA streams, HIP or OpenCL);

o Function pointers can now be mapped to a device or accelerator; and

o Device-specific environment variables have been added.

Providing more information to the compiler to allow improved optimization:

o The assume directive gives the implementation additional information about the way a program uses OpenMP, which allows additional optimizations to be safely applied by compilers, or safe OpenMP subsets to be implemented; and

o Loop transformation directives have been introduced, starting with the tile directive, which can improve data locality, and the unroll directive, which fully or partially unrolls a loop.

Filtering of execution by thread

o The masked directive can restrict execution of a code region to a subset of the threads.

Allowing the user to generate compile-time errors and warnings:

o A new error directive has been added.

Improvements in modern C++ usage of OpenMP:

o Instead of the traditional pragma form, C++ attribute syntax can be used to specify OpenMP directives, which simplifies their integration with templates; and

o Full support for C11, C18, C++11, C++14, C++17 and C++20: Programs written in these languages can now be parallelized with OpenMP.

Improvements in the support for Fortran:

o Fortran 2008 is now fully supported and initial support for Fortran 2018 has been added.

Easier declaration of environment-specific functions:

o Multiple functions can now be included in a single declare variant construct, and code can be more closely tailored to a specific environment.

Major vendors and open source compilers have implemented parts of the OpenMP 5 specification in their products. LLVM, GCC, AMD, Intel, HPE, NVIDIA, Mentor Graphics to name just a few. In addition, debugging and performance tools are being extended with OpenMP 5 features. More details on compilers and tools can be found on the OpenMP website.

About OpenMP

The mission of the OpenMP Architecture Review Board (ARB) is to standardize directive-based multi-language high-level parallelism that is performant, productive and portable. Jointly defined by a group of major computer hardware and software vendors, and users, the OpenMP API is a portable, scalable model that gives parallel programmers a simple and flexible interface for developing parallel applications for platforms ranging from embedded systems and accelerator devices to multicore systems and shared-memory systems. The OpenMP ARB owns the OpenMP brand, oversees the OpenMP specification and produces and approves new versions of the specification. Further information can be found at