aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2021-03-03 22:51:01 +0100
committerThomas Schwinge <thomas@codesourcery.com>2021-03-25 12:16:45 +0100
commit4ef4921cb10693c59b488002179db131683af8bc (patch)
treedef95a5c63004ec74f309a82db4642b30e3d1671
parentff77b4a0db75bc82a5519e31a882f9a25a02cd56 (diff)
downloadgcc-4ef4921cb10693c59b488002179db131683af8bc.zip
gcc-4ef4921cb10693c59b488002179db131683af8bc.tar.gz
gcc-4ef4921cb10693c59b488002179db131683af8bc.tar.bz2
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.
-rw-r--r--libgomp/ChangeLog.omp3
-rw-r--r--libgomp/plugin/plugin-hsa.c8
2 files changed, 11 insertions, 0 deletions
diff --git a/libgomp/ChangeLog.omp b/libgomp/ChangeLog.omp
index 03ca74c..19f48dc 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 abd3bc6..bddb690 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);
+}