summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Stubbs <ams@codesourcery.com>2022-03-29 13:48:04 +0100
committerAndrew Stubbs <ams@codesourcery.com>2022-03-29 14:44:09 +0100
commit87900a2d64bd8590c2760132e6b45bdc3ee185d0 (patch)
tree9771eb18fb373141421b32a0c10f5a1145cf32ba
parentd41e8d071577fafe18e7e8046978a2ef9a0fa711 (diff)
libgomp, nvptx: report USM supported
libgomp/ChangeLog: * plugin/plugin-nvptx.c (GOMP_OFFLOAD_supported_features): Allow GOMP_REQUIRES_UNIFIED_ADDRESS and GOMP_REQUIRES_UNIFIED_SHARED_MEMORY.
-rw-r--r--libgomp/ChangeLog.omp5
-rw-r--r--libgomp/plugin/plugin-nvptx.c5
2 files changed, 9 insertions, 1 deletions
diff --git a/libgomp/ChangeLog.omp b/libgomp/ChangeLog.omp
index 328a88c75f3..2273a2f0fa8 100644
--- a/libgomp/ChangeLog.omp
+++ b/libgomp/ChangeLog.omp
@@ -1,3 +1,8 @@
+2022-03-29 Andrew Stubbs <ams@codesourcery.com>
+
+ * plugin/plugin-nvptx.c (GOMP_OFFLOAD_supported_features): Allow
+ GOMP_REQUIRES_UNIFIED_ADDRESS and GOMP_REQUIRES_UNIFIED_SHARED_MEMORY.
+
2022-03-11 Andrew Stubbs <ams@codesourcery.com>
Backport of the patch posted at
diff --git a/libgomp/plugin/plugin-nvptx.c b/libgomp/plugin/plugin-nvptx.c
index dd490b2ae2a..e77c6a87930 100644
--- a/libgomp/plugin/plugin-nvptx.c
+++ b/libgomp/plugin/plugin-nvptx.c
@@ -1260,11 +1260,14 @@ GOMP_OFFLOAD_fini_device (int n)
return true;
}
-/* Indicate which GOMP_REQUIRES_* features are supported, currently none. */
+/* Indicate which GOMP_REQUIRES_* features are supported. */
bool
GOMP_OFFLOAD_supported_features (unsigned int *mask)
{
+ *mask &= ~(GOMP_REQUIRES_UNIFIED_ADDRESS
+ | GOMP_REQUIRES_UNIFIED_SHARED_MEMORY);
+
return (*mask == 0);
}