From: Andrew Stubbs Date: Tue, 29 Mar 2022 12:48:04 +0000 (+0100) Subject: libgomp, nvptx: report USM supported X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3fd38e31fafdc7f6b6a721b53bdc595c4ec1e09;p=thirdparty%2Fgcc.git 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. --- diff --git a/libgomp/ChangeLog.omp b/libgomp/ChangeLog.omp index 2b941521527e..3372116bb4b8 100644 --- a/libgomp/ChangeLog.omp +++ b/libgomp/ChangeLog.omp @@ -1,3 +1,8 @@ +2022-03-29 Andrew Stubbs + + * plugin/plugin-nvptx.c (GOMP_OFFLOAD_supported_features): Allow + GOMP_REQUIRES_UNIFIED_ADDRESS and GOMP_REQUIRES_UNIFIED_SHARED_MEMORY. + 2022-03-11 Andrew Stubbs Backport of the patch posted at diff --git a/libgomp/plugin/plugin-nvptx.c b/libgomp/plugin/plugin-nvptx.c index 43336efacae5..a71f3d1d6059 100644 --- a/libgomp/plugin/plugin-nvptx.c +++ b/libgomp/plugin/plugin-nvptx.c @@ -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); }