]> git.ipfire.org Git - thirdparty/gcc.git/commit
libgomp: plugin-gcn - support 'unified_address'
authorTobias Burnus <tobias@codesourcery.com>
Tue, 6 Jun 2023 16:06:14 +0000 (18:06 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Tue, 6 Jun 2023 16:06:14 +0000 (18:06 +0200)
commitf1af7d65ff64fe7102d1490ef46ea491a533e641
tree704004e1fbae724d097de8a44227a1049e94825c
parent192665feef71294510b1632bfaaedd4d824c744f
libgomp: plugin-gcn - support 'unified_address'

Effectively, for GCN (as for nvptx) there is a common address space between
host and device, whether being accessible or not. Thus, this commit
permits to use 'omp requires unified_address' with GCN devices.
(nvptx accepts this requirement since r13-3460-g131d18e928a3ea.)

libgomp/

* plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Regard
unified_address requirement as supported.
* libgomp.texi (OpenMP 5.0, AMD Radeon, nvptx): Remove
'unified_address' from the not-supported requirements.
libgomp/libgomp.texi
libgomp/plugin/plugin-gcn.c