https://gcc.gnu.org/g:a9b7798b1ba38dc1019d8a658ff360606e7afd9f
commit a9b7798b1ba38dc1019d8a658ff360606e7afd9f Author: Tobias Burnus <tbur...@baylibre.com> Date: Mon Jan 27 12:47:26 2025 +0100 libgomp.texi: Update 'arch' context-selector description * libgomp.texi (OpenMP Context Selectors): Document that 'kind' also accepts 'cpu'/'any' on host and 'any'/'nohost' on 'nohost' devices. (cherry picked from commit 570d4e4c68535ee4e5b2d82ad02a65fa1ec04112) Diff: --- libgomp/ChangeLog.omp | 8 ++++++++ libgomp/libgomp.texi | 7 ++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/libgomp/ChangeLog.omp b/libgomp/ChangeLog.omp index 68dd2ecc5053..bc07dc1f8979 100644 --- a/libgomp/ChangeLog.omp +++ b/libgomp/ChangeLog.omp @@ -1,3 +1,11 @@ +2025-01-27 Tobias Burnus <tbur...@baylibre.com> + + Backported from master: + 2024-12-19 Tobias Burnus <tbur...@baylibre.com> + + * libgomp.texi (OpenMP Context Selectors): Document that 'kind' also + accepts 'cpu'/'any' on host and 'any'/'nohost' on 'nohost' devices. + 2025-01-27 Paul-Antoine Arras <par...@baylibre.com> Backported from master: diff --git a/libgomp/libgomp.texi b/libgomp/libgomp.texi index 482fc1a7ba59..55f8a8c56e25 100644 --- a/libgomp/libgomp.texi +++ b/libgomp/libgomp.texi @@ -6565,9 +6565,10 @@ smaller number. On non-host devices, the value of the @c has to be implemented; cf. also PR target/105640. @c For offload devices, add *additionally* gcc/config/*/t-omp-device. -For the host compiler, @code{kind} always matches @code{host} and @code{cpu}; -for the offloading architectures AMD GCN and Nvidia PTX, @code{kind} -always matches @code{gpu} and @code{nohost}. +For the host compiler, @code{kind} always matches @code{host}, @code{cpu} +and @code{any}; for the offloading architectures AMD GCN and Nvidia PTX, +@code{kind} always matches @code{nohost}, @code{gpu} and @code{any}. + For the x86 family of computers, AMD GCN and Nvidia PTX the following traits are supported in addition; while OpenMP is supported on more architectures, GCC currently does not match any @code{arch} or