This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH 1/3] [og9] Add missing exec_params libgomp plugin entry points
- From: Julian Brown <julian at codesourcery dot com>
- To: <gcc-patches at gcc dot gnu dot org>
- Cc: Andrew Stubbs <andrew_stubbs at mentor dot com>, Jakub Jelinek <jakub at redhat dot com>
- Date: Thu, 8 Aug 2019 09:53:05 -0700
- Subject: [PATCH 1/3] [og9] Add missing exec_params libgomp plugin entry points
- Ironport-sdr: 7ON8+hK6U/hXJdUmDSJTPqjFb7P2vSIeMvOC9q8aiMublaXrcTpD0XS8LxcEM61kAXjrqkDG8r 3y7CxsrpBbH3dzj7qBHWaUSUU5JOAw9jXXX6dqSE3w2WLxVZ2I3o5Z/NiZxfIwXA8A6jwVxsQJ 9VmfQWXcxzzGCMNnOp9rCoibSmresady02X4MzpDIpN6KluMxnz+rkyF1WM0eoxq4hsMKe5suV XRUY9S31qnaFtpJTQXksYWs7vZ9s6IWF7fx4NwJ2qcDUdHFClByqEPoRLXZ6iHAoQ/JOsH289q eX8=
- Ironport-sdr: +MUWyNy3mxS8XUp4PxpgvLTLRa1RPWYUOrd+eG201va11AJLngTtmihG9xNOVX2LWRxUZV5mDl AVndbP2vPzO93GzlfbQcCO92Psrk01dnKOFvVexl/i/Uw/VNYhFVi1veQRqmITljkUbokbilIq KRYH2v/WQaKthBrVu58bqXwUF+qD2qF9GN5SpEoSzieyUz8eVRWKVHUlLJBvuup+LusgrRstpm aizL9EHROBLm4h+eFGsmAOVgZMWLirKEl/PRefjRgUgLRbLqI+dKqviMltwncvW9efdoHsWnHF j5A=
- References: <20190808165307.56375-1-julian@codesourcery.com>
This patch adds two missing (dummy) entry points to the GCN libgomp
plugin. These are not used at present, because we have not enabled the
function parameter flattening transformation that uses these entry points
on GCN.
Julian
ChangeLog
libgomp/
* plugin/plugin-gcn.c (GOMP_OFFLOAD_openacc_exec_params,
GOMP_OFFLOAD_openacc_async_exec_params): New functions.
---
libgomp/ChangeLog.openacc | 5 +++++
libgomp/plugin/plugin-gcn.c | 17 +++++++++++++++++
2 files changed, 22 insertions(+)
diff --git a/libgomp/ChangeLog.openacc b/libgomp/ChangeLog.openacc
index a187ebb7295..80d089f49e2 100644
--- a/libgomp/ChangeLog.openacc
+++ b/libgomp/ChangeLog.openacc
@@ -1,3 +1,8 @@
+2019-08-08 Julian Brown <julian@codesourcery.com>
+
+ * plugin/plugin-gcn.c (GOMP_OFFLOAD_openacc_exec_params,
+ GOMP_OFFLOAD_openacc_async_exec_params): New functions.
+
2019-07-31 Julian Brown <julian@codesourcery.com>
* testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Use relative
diff --git a/libgomp/plugin/plugin-gcn.c b/libgomp/plugin/plugin-gcn.c
index b059348c7bf..6eaae66c1a9 100644
--- a/libgomp/plugin/plugin-gcn.c
+++ b/libgomp/plugin/plugin-gcn.c
@@ -3291,6 +3291,14 @@ GOMP_OFFLOAD_openacc_exec (void (*fn_ptr) (void *), size_t mapnum,
NULL);
}
+void
+GOMP_OFFLOAD_openacc_exec_params (void (*fn_ptr) (void *), size_t mapnum,
+ void **hostaddrs, void **devaddrs,
+ unsigned *dims, void *targ_mem_desc)
+{
+ GOMP_PLUGIN_fatal ("OpenACC exec params unimplemented.");
+}
+
void
GOMP_OFFLOAD_openacc_async_exec (void (*fn_ptr) (void *), size_t mapnum,
void **hostaddrs, void **devaddrs,
@@ -3303,6 +3311,15 @@ GOMP_OFFLOAD_openacc_async_exec (void (*fn_ptr) (void *), size_t mapnum,
aq);
}
+void
+GOMP_OFFLOAD_openacc_async_exec_params (void (*fn) (void *), size_t mapnum,
+ void **hostaddrs, void **devaddrs,
+ unsigned *dims, void *targ_mem_desc,
+ struct goacc_asyncqueue *aq)
+{
+ GOMP_PLUGIN_fatal ("OpenACC async exec params unimplemented.");
+}
+
struct goacc_asyncqueue *
GOMP_OFFLOAD_openacc_async_construct (int device)
{