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:
parent
842df18748
commit
f3fd38e31f
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue