aboutsummaryrefslogtreecommitdiff
path: root/libgomp/openacc_lib.h
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2017-05-24 15:25:01 +0200
committerThomas Schwinge <tschwinge@gcc.gnu.org>2017-05-24 15:25:01 +0200
commit7ce6440371a57a4c23eff770056e7b24aa30b204 (patch)
treeb60bb3f657f6dcfe63f5785355e867d7417b70b6 /libgomp/openacc_lib.h
parent318686c21a49aa7dbf6d04e510e6e513195256e3 (diff)
downloadgcc-7ce6440371a57a4c23eff770056e7b24aa30b204.zip
gcc-7ce6440371a57a4c23eff770056e7b24aa30b204.tar.gz
gcc-7ce6440371a57a4c23eff770056e7b24aa30b204.tar.bz2
OpenACC 1.0 compatibility: acc_async_wait, acc_async_wait_all
libgomp/ * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes. * libgomp.map (OACC_2.0.1): Add these. * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases for "acc_wait", and "acc_wait_all", respectively. * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces for "acc_wait", and "acc_wait_all", respectively. * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise. * libgomp.texi (acc_wait, acc_wait_all): Update. * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update. * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file. * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise. From-SVN: r248413
Diffstat (limited to 'libgomp/openacc_lib.h')
-rw-r--r--libgomp/openacc_lib.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/libgomp/openacc_lib.h b/libgomp/openacc_lib.h
index 7818bd7..289b551 100644
--- a/libgomp/openacc_lib.h
+++ b/libgomp/openacc_lib.h
@@ -108,6 +108,11 @@
end subroutine
end interface
+! acc_async_wait is an OpenACC 1.0 compatibility name for acc_wait.
+ interface acc_async_wait
+ procedure :: acc_wait_h
+ end interface
+
interface acc_wait_async
subroutine acc_wait_async_h (a1, a2)
integer a1, a2
@@ -119,6 +124,12 @@
end subroutine
end interface
+! acc_async_wait_all is an OpenACC 1.0 compatibility name for
+! acc_wait_all.
+ interface acc_async_wait_all
+ procedure :: acc_wait_all_h
+ end interface
+
interface acc_wait_all_async
subroutine acc_wait_all_async_h (a)
integer a