public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] [og9] Add omp_pause_resource{,_all} for AMD GCN
@ 2019-09-06 16:02 Julian Brown
  2019-09-06 16:02 ` [PATCH] [og9] OpenACC profiling support " Julian Brown
  2019-09-06 16:02 ` [PATCH] [og9] Use more appropriate var in localize_reductions call Julian Brown
  0 siblings, 2 replies; 4+ messages in thread
From: Julian Brown @ 2019-09-06 16:02 UTC (permalink / raw)
  To: gcc-patches; +Cc: Thomas Schwinge, Andrew Stubbs

This patch adds some missing functions to the AMD GCN-specific target.c
file. This fixes several link errors in the testsuite.

Tested with offloading to AMD GCN. I will apply to the
openacc-gcc-9-branch shortly.

Julian

ChangeLog

	libgomp/
	* config/gcn/target.c (omp_pause_resource, omp_pause_resource_all): New
	functions, plus ialiases.
---
 libgomp/ChangeLog.openacc   |  5 +++++
 libgomp/config/gcn/target.c | 18 ++++++++++++++++++
 2 files changed, 23 insertions(+)

diff --git a/libgomp/ChangeLog.openacc b/libgomp/ChangeLog.openacc
index 438bd59b47b..d7a4c7a5f8a 100644
--- a/libgomp/ChangeLog.openacc
+++ b/libgomp/ChangeLog.openacc
@@ -1,3 +1,8 @@
+2019-09-06  Julian Brown  <julian@codesourcery.com>
+
+	* config/gcn/target.c (omp_pause_resource, omp_pause_resource_all): New
+	functions, plus ialiases.
+
 2019-09-05  Julian Brown  <julian@codesourcery.com>
 
 	* plugin/plugin-gcn.c (gcn_exec): Change default number of workers to
diff --git a/libgomp/config/gcn/target.c b/libgomp/config/gcn/target.c
index 5ec57778772..db00551e695 100644
--- a/libgomp/config/gcn/target.c
+++ b/libgomp/config/gcn/target.c
@@ -47,3 +47,21 @@ GOMP_teams (unsigned int num_teams, unsigned int thread_limit)
     }
   gomp_num_teams_var = num_teams - 1;
 }
+
+int
+omp_pause_resource (omp_pause_resource_t kind, int device_num)
+{
+  (void) kind;
+  (void) device_num;
+  return -1;
+}
+
+int
+omp_pause_resource_all (omp_pause_resource_t kind)
+{
+  (void) kind;
+  return -1;
+}
+
+ialias (omp_pause_resource)
+ialias (omp_pause_resource_all)
-- 
2.22.0

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-03-10 14:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-06 16:02 [PATCH] [og9] Add omp_pause_resource{,_all} for AMD GCN Julian Brown
2019-09-06 16:02 ` [PATCH] [og9] OpenACC profiling support " Julian Brown
2023-03-10 14:07   ` Fix OpenACC/GCN 'acc_ev_enqueue_launch_end' position (was: [PATCH] [og9] OpenACC profiling support for AMD GCN) Thomas Schwinge
2019-09-06 16:02 ` [PATCH] [og9] Use more appropriate var in localize_reductions call Julian Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).