gcc/libgomp/plugin
Tobias Burnus 18f477980c 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.
2024-05-29 15:29:06 +02:00
..
Makefrag.am Update copyright years. 2024-01-03 12:19:35 +01:00
configfrag.ac Update copyright years. 2024-01-03 12:19:35 +01:00
cuda-lib.def OpenMP: Call cuMemcpy2D/cuMemcpy3D for nvptx for omp_target_memcpy_rect 2023-07-26 16:22:35 +02:00
plugin-gcn.c libgomp: Enable USM for AMD APUs and MI200 devices 2024-05-29 15:29:06 +02:00
plugin-nvptx.c libgomp: Enable USM for some nvptx devices 2024-05-29 15:14:38 +02:00