]> git.ipfire.org Git - thirdparty/gcc.git/commit
libgomp: with USM, init 'link' variables with host address
authorTobias Burnus <tburnus@baylibre.com>
Tue, 24 Sep 2024 15:41:39 +0000 (17:41 +0200)
committerTobias Burnus <tburnus@baylibre.com>
Tue, 24 Sep 2024 15:41:39 +0000 (17:41 +0200)
commit4cb20dc043cf70b8a1b4846c86599cc1ff9680d9
tree96f9200cca379984a42f496f442a2dba2e976887
parent79a3d3da8c8a5ad56547b7f7991577271ee5d1b2
libgomp: with USM, init 'link' variables with host address

If requires unified_shared_memory or self_maps is set, make
'declare target link' variables to point initially to the host pointer.

libgomp/ChangeLog:

* target.c (gomp_load_image_to_device): For requires
unified_shared_memory, update 'link' vars to point to the host var.
* testsuite/libgomp.c-c++-common/target-link-3.c: New test.
* testsuite/libgomp.c-c++-common/target-link-4.c: New test.
libgomp/target.c
libgomp/testsuite/libgomp.c-c++-common/target-link-3.c [new file with mode: 0644]
libgomp/testsuite/libgomp.c-c++-common/target-link-4.c [new file with mode: 0644]