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.
This commit is contained in:
Andrew Stubbs 2022-03-29 13:48:04 +01:00 committed by Kwok Cheung Yeung
parent 842df18748
commit f3fd38e31f
2 changed files with 9 additions and 1 deletions

View 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

View 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);
}