]> git.ipfire.org Git - thirdparty/gcc.git/commit
libgomp.texi: Document supported OpenMP 'interop' types for nvptx and gcn
authorTobias Burnus <tburnus@baylibre.com>
Wed, 26 Mar 2025 10:27:56 +0000 (11:27 +0100)
committerAndrew Stubbs <ams@baylibre.com>
Mon, 28 Apr 2025 14:37:44 +0000 (14:37 +0000)
commit0572eb1918b4de3a27a24cf0a21c9b71aea7c5f7
tree92c83b5e460146b64bb997c4bc863844a2c71d31
parent33e01148ab0ed5fba2a5ac380bbba2e90629d7fd
libgomp.texi: Document supported OpenMP 'interop' types for nvptx and gcn

Note that this commit also updates the API interface to OpenMP 6.0;
while 5.1 and 5.2 use 'int *' for the the ret_code argument,
OpenMP 6.0 changed this to omp_interop_rc_t *; this enum also exists in
OpenMP 5.1. However, C++ does not like this change such that unless NULL
is passed (i.e. the argument is ignored), OpenMP 5.x and 6.x are not
compatible.

Note that GCC's omp.h already follows OpenMP 6.0 and is now in sync with
the documentation.

libgomp/ChangeLog:

* libgomp.texi (OpenMP 5.1): Add @ref to offload-target specifics
for 'interop'.
(OpenMP 6.0): Mark dispatch's interop clause as implemented.
(omp_get_interop_int, omp_get_interop_str,
omp_get_interop_ptr, omp_get_interop_type_desc): Add @ref to
Offload-Target Specifics; change ret_code argument type to
'omp_interop_rc_t *'.
(Offload-Target Specifics): Document the supported OpenMP
interop foreign runtimes on AMD and Nvidia GPUs.

(cherry picked from commit 2e7c1b589bc58be0e155098cf87d8535d41adeab)
libgomp/libgomp.texi