aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Burnus <tburnus@baylibre.com>2025-01-07 16:43:30 +0100
committerTobias Burnus <tburnus@baylibre.com>2025-01-07 16:43:30 +0100
commitd3ccd89fa0d34d44226af47fe82c27ba7833fe65 (patch)
tree569fe126dd155ca31e0d4f3fb721b6ec3f42179b
parentaa688dd6302fd9fd4a6ede232bbe63781e672ae9 (diff)
downloadgcc-d3ccd89fa0d34d44226af47fe82c27ba7833fe65.zip
gcc-d3ccd89fa0d34d44226af47fe82c27ba7833fe65.tar.gz
gcc-d3ccd89fa0d34d44226af47fe82c27ba7833fe65.tar.bz2
libgomp.texi: Minor update to omp_get_num_devices/omp_get_initial_device
libgomp/ChangeLog: * libgomp.texi (OpenMP 6.0): Fix typo. (omp_get_default_device): Update the wording as the value returned by omp_get_initial_device is now ambiguous. (omp_get_num_devices): Minor wording tweak. (omp_get_initial_device): Note that the function may also return omp_initial_device since OpenMP 6.
-rw-r--r--libgomp/libgomp.texi14
1 files changed, 7 insertions, 7 deletions
diff --git a/libgomp/libgomp.texi b/libgomp/libgomp.texi
index 9a42355..7d8cd70 100644
--- a/libgomp/libgomp.texi
+++ b/libgomp/libgomp.texi
@@ -550,7 +550,7 @@ to address of matching mapped list item per 5.1, Sect. 2.21.7.2 @tab N @tab
@item @code{interchange} loop-transformation construct @tab N @tab
@item @code{reverse} loop-transformation construct @tab N @tab
@item @code{split} loop-transformation construct @tab N @tab
-@item @code{stipe} loop-transformation construct @tab N @tab
+@item @code{stripe} loop-transformation construct @tab N @tab
@item @code{tile} permitting association of grid and inter-tile loops @tab N @tab
@item @code{strict} modifier keyword to @code{num_threads} @tab N @tab
@item @code{safesync} clause to the @code{parallel} construct @tab N @tab
@@ -1760,10 +1760,9 @@ The effect of running this routine in a @code{target} region is unspecified.
Get the value of the @emph{default-device-var} ICV, which is used
for target regions without a device clause. The value is either a
nonnegative device number, @code{omp_initial_device} or
-@code{omp_invalid_device}. Note that for the host, the ICV can have two values
-and, hence, this routine might return either the value of the named constant
-@code{omp_initial_device} or the value returned by the
-@code{omp_get_initial_device} routine.
+@code{omp_invalid_device}. Note that for the host, the ICV can have two values:
+either the value of the named constant @code{omp_initial_device} or the value
+returned by the @code{omp_get_num_devices} routine.
The effect of running this routine in a @code{target} region is unspecified.
@@ -1791,7 +1790,7 @@ The effect of running this routine in a @code{target} region is unspecified.
@subsection @code{omp_get_num_devices} -- Number of target devices
@table @asis
@item @emph{Description}:
-Returns the number of target devices.
+Returns the number of available non-host devices.
The effect of running this routine in a @code{target} region is unspecified.
@@ -1938,7 +1937,8 @@ run-time function is desired.
@item @emph{Description}:
This function returns a device number that represents the host device.
Since OpenMP 5.1, this is equal to the value returned by the
-@code{omp_get_num_devices} function.
+@code{omp_get_num_devices} function; since OpenMP 6.0 it may also return
+the value of @code{omp_initial_device}.
The effect of running this routine in a @code{target} region is unspecified.