]> gcc.gnu.org Git - gcc.git/commitdiff
libgomp.texi: Document OpenMP context selectors
authorTobias Burnus <tobias@codesourcery.com>
Mon, 4 Jul 2022 19:45:43 +0000 (21:45 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Mon, 4 Jul 2022 19:45:43 +0000 (21:45 +0200)
libgomp/
* libgomp.texi (Offload-Target Specifics): New chapter; add section
to document OpenMP context selectors.

(cherry picked from commit 61fe7b7d463f2f6bbeb175c345a68b844b396d56)

libgomp/ChangeLog.omp
libgomp/libgomp.texi

index 5e1997de255801ff9181e7c05bfdcd9c7981ec8a..be874675d353d4429d2b42a483bd898e144a36b6 100644 (file)
@@ -1,3 +1,11 @@
+2022-07-04  Tobias Burnus  <tobias@codesourcery.com>
+
+       Backport from mainline:
+       2022-05-17  Tobias Burnus  <tobias@codesourcery.com>
+
+       * libgomp.texi (Offload-Target Specifics): New chapter; add section
+       to document OpenMP context selectors.
+
 2022-07-04  Tobias Burnus  <tobias@codesourcery.com>
 
        Backport from mainline:
index 4c25da345a680a37e4a4ce786e80f4da06a33e0a..93b9523a6629b4d4958774b007918a426c2602f8 100644 (file)
@@ -113,6 +113,7 @@ changed to GNU Offloading and Multi Processing Runtime Library.
 * OpenACC Library Interoperability:: OpenACC library interoperability with the
                                NVIDIA CUBLAS library.
 * OpenACC Profiling Interface::
+* Offload-Target Specifics::   Notes on offload-target specific internals
 * The libgomp ABI::            Notes on the external ABI presented by libgomp.
 * Reporting Bugs::             How to report bugs in the GNU Offloading and
                                Multi Processing Runtime Library.
@@ -4249,6 +4250,37 @@ offloading devices (it's not clear if they should be):
 @item @code{acc_memcpy_from_device}, @code{acc_memcpy_from_device_async}
 @end itemize
 
+@c ---------------------------------------------------------------------
+@c Offload-Target Specifics
+@c ---------------------------------------------------------------------
+
+@node Offload-Target Specifics
+@chapter Offload-Target Specifics
+
+The following sections present notes on the offload-target specifics.
+
+@menu
+* OpenMP Context Selectors::
+@end menu
+
+@node OpenMP Context Selectors
+@section OpenMP Context Selectors
+
+@code{vendor} is always @code{gnu}. References are to the GCC manual.
+
+@multitable @columnfractions .60 .10 .25
+@headitem @code{arch} @tab @code{kind} @tab @code{isa}
+@item @code{intel_mic}, @code{x86}, @code{x86_64}, @code{i386}, @code{i486},
+      @code{i586}, @code{i686}, @code{ia32}
+      @tab @code{host}
+      @tab See @code{-m...} flags in ``x86 Options'' (without @code{-m})
+@item @code{amdgcn} @code{gcn}
+      @tab @code{gpu}
+      @tab See @code{-march=} in ``AMD GCN Options''
+@item @code{nvptx}
+      @tab @code{gpu}
+      @tab See @code{-misa=} in ``Nvidia PTX Options''
+@end multitable
 
 
 @c ---------------------------------------------------------------------
This page took 0.07292 seconds and 5 git commands to generate.