[OpenMP] Fix two usm tests for amdgpus. (#78824)
commit3440466536c97ced20e366301a60f12f4fd01e30
authorcarlobertolli <carlo.bertolli@amd.com>
Mon, 22 Jan 2024 14:56:51 +0000 (22 08:56 -0600)
committerGitHub <noreply@github.com>
Mon, 22 Jan 2024 14:56:51 +0000 (22 08:56 -0600)
tree264c9dc3643d29bf4a0ccf6260b6292ee53e6e60
parentac3ee1b1aec424c60660fd245f5b53aaffa2f5b1
[OpenMP] Fix two usm tests for amdgpus. (#78824)

Some are missing setting of HSA_XNACK=1 environment variable, used to
enable unified memory support on amdgpu's when it's not been set at
kernel boot time. Some others needed to be marked as supporting
unified_shared_memory in the lit test harness.

Extend lit test harness to enable unified_shared_memory requirement for
AMD GPUs.

Reland: #77851
openmp/libomptarget/test/lit.cfg
openmp/libomptarget/test/lit.site.cfg.in
openmp/libomptarget/test/unified_shared_memory/api.c
openmp/libomptarget/test/unified_shared_memory/close_enter_exit.c