public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/omp/gcc-10] OpenMP 5.0: requires directive: adjust libgomp HSA plugin
@ 2021-03-25 11:17 Thomas Schwinge
0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2021-03-25 11:17 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:4ef4921cb10693c59b488002179db131683af8bc
commit 4ef4921cb10693c59b488002179db131683af8bc
Author: Thomas Schwinge <thomas@codesourcery.com>
Date: Wed Mar 3 22:51:01 2021 +0100
OpenMP 5.0: requires directive: adjust libgomp HSA plugin
Fix-up for og10 commit c2e4a17adc0989f216c7fc3f93f150c66adba23a "OpenMP 5.0:
requires directive".
libgomp: while loading libgomp-plugin-hsa.so.1: [...]/libgomp-plugin-hsa.so.1: undefined symbol: GOMP_OFFLOAD_supported_features
libgomp/
* plugin/plugin-hsa.c (GOMP_OFFLOAD_supported_features): New
function.
Diff:
---
libgomp/ChangeLog.omp | 3 +++
libgomp/plugin/plugin-hsa.c | 8 ++++++++
2 files changed, 11 insertions(+)
diff --git a/libgomp/ChangeLog.omp b/libgomp/ChangeLog.omp
index 03ca74c8f3d..19f48dc6120 100644
--- a/libgomp/ChangeLog.omp
+++ b/libgomp/ChangeLog.omp
@@ -1,5 +1,8 @@
2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
+ * plugin/plugin-hsa.c (GOMP_OFFLOAD_supported_features): New
+ function.
+
* target.c (__requires_mask_table, __requires_mask_table_end): Add
'__attribute__((weak))'.
diff --git a/libgomp/plugin/plugin-hsa.c b/libgomp/plugin/plugin-hsa.c
index abd3bc64163..bddb690ca14 100644
--- a/libgomp/plugin/plugin-hsa.c
+++ b/libgomp/plugin/plugin-hsa.c
@@ -1869,3 +1869,11 @@ GOMP_OFFLOAD_dev2dev (int ord, void *dst, const void *src, size_t n)
"it should never be called");
return false;
}
+
+/* Indicate which GOMP_REQUIRES_* features are supported, currently none. */
+
+bool
+GOMP_OFFLOAD_supported_features (unsigned int *mask)
+{
+ return (*mask == 0);
+}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-03-25 11:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-25 11:17 [gcc/devel/omp/gcc-10] OpenMP 5.0: requires directive: adjust libgomp HSA plugin Thomas Schwinge
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).