Thomas Schwinge wrote:
With commit 97a43fc4dbc5cfb1174a13313dda7637c838d110
"OpenMP: Handle 'device_type(nohost)' on 'target'", I'm seeing:

... for (non-USM) AMD GPU offloading:

     Memory access fault

I wished I had a GPU that could be - at runtime - toggled
between not-shared memory, shared memory, and integrated GPU mode …

[OK, passing 'uvm_disable_hmm=1' to 'nvidia-uvm' works but means
rebooting …]

* * *

Fix this by 'map'ping 'x' for the OpenMP 'target' construct.  Not technically
necessary for 'libgomp.c/target-device-type-2.c' (as that one's exercising the
'host' error case), but still apply the same change also to that one.
OK.
        libgomp/
        * testsuite/libgomp.c/target-device-type-1.c (f): Map 'x'.
        * testsuite/libgomp.c/target-device-type-2.c (f): Likewise.

Thanks and sorry for the test fail!

Tobias

Reply via email to