[libomptarget][amdgpu] enable tests whenever possible.
authorYe Luo <yeluo@anl.gov>
Wed, 24 Aug 2022 18:50:42 +0000 (13:50 -0500)
committerYe Luo <yeluo@anl.gov>
Wed, 24 Aug 2022 19:33:28 +0000 (14:33 -0500)
commit322ea53144e82c34d5c933cb4ce5a83807e3b67e
treeacd5e4040237fa248b4eec335300bc88a1b2242b
parenta79060e275440ccd8d403d5af5fb5b9395ea3fac
[libomptarget][amdgpu] enable tests whenever possible.

if(TARGET amdgpu-arch) doesn't work when ENABLE_LLVM_PROJECTS=openmp because openmp subdirectory is processed before clang subdirectory. Adopt the same logic of enabling tests like the CUDA plugin.

Differential Revision: https://reviews.llvm.org/D132579
openmp/libomptarget/plugins/amdgpu/CMakeLists.txt