https://gcc.gnu.org/g:ea9516fe4998fd1cd6420e7b0a9d8ab8ed60c2ce
commit ea9516fe4998fd1cd6420e7b0a9d8ab8ed60c2ce Author: Chung-Lin Tang <clt...@baylibre.com> Date: Fri Apr 11 13:51:55 2025 +0000 OpenACC 2.7: adjust 2.6 references to 2.7 More adjustments to indicate OpenACC 2.7 support. 2025-04-11 Chung-Lin Tang <clt...@baylibre.com> gcc/fortran/ChangeLog: * intrinsic.texi (OpenACC Module OPENACC): Adjust version references to 2.7 from 2.6. libgomp/ChangeLog: * libgomp.texi (Enabling OpenACC): Adjust version references to 2.7 from 2.6. * openacc.f90 (module openacc): Adjust openacc_version to 201811. * openacc_lib.h (openacc_version): Adjust openacc_version to 201811. * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Adjust test value to 201811. * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise. Diff: --- gcc/fortran/intrinsic.texi | 6 +++--- libgomp/libgomp.texi | 8 ++++---- libgomp/openacc.f90 | 2 +- libgomp/openacc_lib.h | 2 +- libgomp/testsuite/libgomp.oacc-fortran/openacc_version-1.f | 2 +- libgomp/testsuite/libgomp.oacc-fortran/openacc_version-2.f90 | 2 +- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/gcc/fortran/intrinsic.texi b/gcc/fortran/intrinsic.texi index 0445feaf73a7..eedfb83231e7 100644 --- a/gcc/fortran/intrinsic.texi +++ b/gcc/fortran/intrinsic.texi @@ -15400,7 +15400,7 @@ The following scalar integer named constants are of the kind @section OpenACC Module @code{OPENACC} @table @asis @item @emph{Standard}: -OpenACC Application Programming Interface v2.6 +OpenACC Application Programming Interface v2.7 @end table @@ -15414,9 +15414,9 @@ are listed below. For details refer to the actual @uref{https://www.openacc.org/, -OpenACC Application Programming Interface v2.6}. +OpenACC Application Programming Interface v2.7}. @code{OPENACC} provides the scalar default-integer named constant @code{openacc_version} with a value of the form @var{yyyymm}, where @code{yyyy} is the year and @var{mm} the month -of the OpenACC version; for OpenACC v2.6 the value is @code{201711}. +of the OpenACC version; for OpenACC v2.7 the value is @code{201811}. diff --git a/libgomp/libgomp.texi b/libgomp/libgomp.texi index e303cb513c5a..5190a04f6648 100644 --- a/libgomp/libgomp.texi +++ b/libgomp/libgomp.texi @@ -4578,7 +4578,7 @@ See @uref{https://gcc.gnu.org/wiki/OpenACC} for more information. A complete description of all OpenACC directives accepted may be found in the @uref{https://www.openacc.org, OpenACC} Application Programming -Interface manual, version 2.6. +Interface manual, version 2.7. @@ -4590,14 +4590,14 @@ Interface manual, version 2.6. @chapter OpenACC Runtime Library Routines The runtime routines described here are defined by section 3 of the OpenACC -specifications in version 2.6. +specifications in version 2.7. They have C linkage, and do not throw exceptions. Generally, they are available only for the host, with the exception of @code{acc_on_device}, which is available for both the host and the acceleration device. This list has not yet been updated for the OpenACC specification in -version 2.6. +version 2.7. @menu * acc_get_num_devices:: Get number of devices for the given device @@ -4688,7 +4688,7 @@ for the device type specified in @var{devicetype}. @end multitable @item @emph{Reference}: -@uref{https://www.openacc.org, OpenACC specification v2.6}, section +@uref{https://www.openacc.org, OpenACC specification v2.7}, section 3.2.1. @end table diff --git a/libgomp/openacc.f90 b/libgomp/openacc.f90 index 4e24ee46a977..6ee68630114d 100644 --- a/libgomp/openacc.f90 +++ b/libgomp/openacc.f90 @@ -798,7 +798,7 @@ module openacc public :: acc_memcpy_to_device, acc_memcpy_to_device_async public :: acc_memcpy_from_device, acc_memcpy_from_device_async - integer, parameter :: openacc_version = 201711 + integer, parameter :: openacc_version = 201811 interface acc_get_num_devices procedure :: acc_get_num_devices_h diff --git a/libgomp/openacc_lib.h b/libgomp/openacc_lib.h index 913c3f1aa3dc..47779125ff29 100644 --- a/libgomp/openacc_lib.h +++ b/libgomp/openacc_lib.h @@ -70,7 +70,7 @@ integer (acc_handle_kind), parameter :: acc_async_noval = -1 integer (acc_handle_kind), parameter :: acc_async_sync = -2 - integer, parameter :: openacc_version = 201711 + integer, parameter :: openacc_version = 201811 interface acc_get_num_devices function acc_get_num_devices_h (devicetype) diff --git a/libgomp/testsuite/libgomp.oacc-fortran/openacc_version-1.f b/libgomp/testsuite/libgomp.oacc-fortran/openacc_version-1.f index 36e9844bb157..8d4e3f35880a 100644 --- a/libgomp/testsuite/libgomp.oacc-fortran/openacc_version-1.f +++ b/libgomp/testsuite/libgomp.oacc-fortran/openacc_version-1.f @@ -4,6 +4,6 @@ implicit none include "openacc_lib.h" - if (openacc_version .ne. 201711) STOP 1 + if (openacc_version .ne. 201811) STOP 1 end program main diff --git a/libgomp/testsuite/libgomp.oacc-fortran/openacc_version-2.f90 b/libgomp/testsuite/libgomp.oacc-fortran/openacc_version-2.f90 index e815bc1b8277..c9946c277f6d 100644 --- a/libgomp/testsuite/libgomp.oacc-fortran/openacc_version-2.f90 +++ b/libgomp/testsuite/libgomp.oacc-fortran/openacc_version-2.f90 @@ -4,6 +4,6 @@ program main use openacc implicit none - if (openacc_version .ne. 201711) STOP 1 + if (openacc_version .ne. 201811) STOP 1 end program main