Any comments before I commit the following patch updating the webpage?

OpenACC: Add the init/set/shutdown directive support for Fortran
to https://gcc.gnu.org/gcc-17/changes.html (→ OpenACC, section added here)

For OpenMP, I noticed a while ago parsing 'device_type' for variables
is supported since GCC 10 (Fortran: 11), i.e. half a year before
OpenMP 5.1 was even released. Looking at the code, it does not seem to
be really handled besides parsing - but testing shows that it largely is,
possibly the linker fixes this mostly - such that the symbol is only in
host/nohost. Still, only marked as 'partial' - for now.
→ https://gcc.gnu.org/projects/gomp/ (→ Impl. Status → 5.1).

* * *

Thomas Schwinge wrote:

From: Sebastian Galindo

This patch adds parsing and libgomp runtime calls for these directives,
sharing the existing implementation with runtime API calls. It also
includes support for the device_type and device_num clauses in the
Fortran front-end.

Cool!

Side remark: routine, parallel, kernels, and loop also support the device_type
clause since OpenACC 2.5; eventually, support for this has to be added as well.
[Later versions seem to add it for 'serial' + 'data' as well.] - Just for
completeness.

[And I just noticed: "The device_type clause may be abbreviated to dtype",
this seems to be simple to implement for C/C++/Fortran and seems to be not
implemented in GCC.]

* * *

Tobias

PS: I hope the release notes + status are now up to date. There is more,
but I think those fall under prep work or bug fixes.
gcc-17/changes.html: OpenACC update - projects/gomp/: OpenMP update

* gcc-17/changes.html: OpenACC 2.5 - add init/set/shutdown directives.
* projects/gomp/: 5.1 implementation - mark device_type support for
  variables as partial.

 htdocs/gcc-17/changes.html      | 11 +++++++++++
 htdocs/projects/gomp/index.html |  6 ++++--
 2 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/htdocs/gcc-17/changes.html b/htdocs/gcc-17/changes.html
index 449d3a151..3c3a24bbc 100644
--- a/htdocs/gcc-17/changes.html
+++ b/htdocs/gcc-17/changes.html
@@ -40,6 +40,17 @@ a work-in-progress.</p>
 <!-- .................................................................. -->
 <h2 id="languages">New Languages and Language specific improvements</h2>
 
+<h3 id="openacc">OpenACC</h3>
+
+<p>See the GCC <a href="https://gcc.gnu.org/wiki/OpenACC";>OpenACC</a> wiki page
+for general information.</p>
+
+<ul>
+  <li><strong>OpenACC 2.5:</strong> Add Fortran support for the
+    <code>init</code>, <code>set</code>, and <code>shutdown</code>
+    directives.</li>
+</ul>
+
 <h3 id="openmp">OpenMP</h3>
 
 <p>
diff --git a/htdocs/projects/gomp/index.html b/htdocs/projects/gomp/index.html
index 5be2ad7a2..6c9d1c964 100644
--- a/htdocs/projects/gomp/index.html
+++ b/htdocs/projects/gomp/index.html
@@ -782,8 +782,10 @@ than listed, depending on resolved corner cases and optimizations.</p>
   </tr>
   <tr>
     <td><code>device_type(nohost)</code>/<code>device_type(host)</code> for variables</td>
-    <td class="unsupported">No</td>
-    <td></td>
+    <td class="partial"><a href="../../gcc-10/changes.html#languages">GCC&nbsp;10</a><br>
+                        <a href="../../gcc-11/changes.html#languages">GCC&nbsp;11</a></td>
+    <td>Initial support for C/C++<br>Initial support</td>
+</td>
   </tr>
   <tr>
     <td><code>present</code> modifier to the <code>map</code>, <code>to</code> and <code>from</code> clauses</td>

Reply via email to