On 10/15/25 07:18, Tobias Burnus wrote:
The patch updates https://gcc.gnu.org/onlinedocs/libgomp/OpenMP-Context-
Selectors.html
to clarify the behavior of 'isa("gfx9-generic")' vs. 'isa("gfx900")'.
(The documentation update also applies to Nvptx.)
I have one small nit:
diff --git a/libgomp/libgomp.texi b/libgomp/libgomp.texi
index 73c8c3edace..73b9bdf3ee1 100644
--- a/libgomp/libgomp.texi
+++ b/libgomp/libgomp.texi
@@ -6824,6 +6824,13 @@ the following traits are supported in addition; while
OpenMP is supported
on more architectures, GCC currently does not match any @code{arch} or
@code{isa} traits for those.
+Note that for AMD GCN and Nvidia PTX, the @code{isa} is currently an
+exact match between the compiled-for ISA architecture and the matching
+@code{isa} trait value. For instance, when compiling for @code{gfx942},
+the @code{isa} trait value @code{gfx9-4-generic} will not be matched and,
s/will not be matched/is not matched/
+likewise, @code{gfx942} is not matched when compiling for its generic
+architecture.
+
@multitable @columnfractions .65 .30
@headitem @code{arch} @tab @code{isa}
@item @code{x86}, @code{x86_64}, @code{i386}, @code{i486},
-Sandra