diff options
| author | Tobias Burnus <tburnus@baylibre.com> | 2024-05-29 15:29:06 +0200 |
|---|---|---|
| committer | Tobias Burnus <tburnus@baylibre.com> | 2024-05-29 15:29:06 +0200 |
| commit | 18f477980c8597fe3dca2c2e8bd533c0c2b17aa6 (patch) | |
| tree | 5d0dcb61f7e305df3994ac6250b906373f8937ff /include | |
| parent | 4ccb3366ade6ec9493f8ca20ab73b0da4b9816db (diff) | |
libgomp: Enable USM for AMD APUs and MI200 devices
If HSA_AMD_SYSTEM_INFO_SVM_ACCESSIBLE_BY_DEFAULT is true,
all GPUs on the system support unified shared memory. That's
the case for APUs and MI200 devices when XNACK is enabled.
XNACK can be enabled by setting HSA_XNACK=1 as env var for
supported devices; otherwise, if disable, USM code will
use host fallback.
gcc/ChangeLog:
* config/gcn/gcn-hsa.h (gcn_local_sym_hash): Fix typo.
include/ChangeLog:
* hsa.h (HSA_AMD_SYSTEM_INFO_SVM_ACCESSIBLE_BY_DEFAULT): Add
enum value.
libgomp/ChangeLog:
* libgomp.texi (gcn): Update USM handling
* plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Handle
USM if HSA_AMD_SYSTEM_INFO_SVM_ACCESSIBLE_BY_DEFAULT is true.
Diffstat (limited to 'include')
| -rw-r--r-- | include/hsa.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/hsa.h b/include/hsa.h index f9b5d9daf85..3c7be95d7fd 100644 --- a/include/hsa.h +++ b/include/hsa.h @@ -466,7 +466,9 @@ typedef enum { /** * String containing the ROCr build identifier. */ - HSA_AMD_SYSTEM_INFO_BUILD_VERSION = 0x200 + HSA_AMD_SYSTEM_INFO_BUILD_VERSION = 0x200, + + HSA_AMD_SYSTEM_INFO_SVM_ACCESSIBLE_BY_DEFAULT = 0x202 } hsa_system_info_t; /** |
