]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libgomp, nvptx: report USM supported
authorAndrew Stubbs <ams@codesourcery.com>
Tue, 29 Mar 2022 12:48:04 +0000 (13:48 +0100)
committerKwok Cheung Yeung <kcy@codesourcery.com>
Tue, 28 Jun 2022 20:55:24 +0000 (13:55 -0700)
libgomp/ChangeLog:

* plugin/plugin-nvptx.c (GOMP_OFFLOAD_supported_features): Allow
GOMP_REQUIRES_UNIFIED_ADDRESS and GOMP_REQUIRES_UNIFIED_SHARED_MEMORY.

libgomp/ChangeLog.omp
libgomp/plugin/plugin-nvptx.c

index 2b941521527ebac33280e21506bbe14841f8fd7a..3372116bb4b8676e45da628e2d8e447d06ddcc44 100644 (file)
@@ -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
index 43336efacae54e8d6b46f754e0b09f5a1f3a28fe..a71f3d1d6059c6c8262946b47703edf555bd2a6a 100644 (file)
@@ -1264,11 +1264,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);
 }