[Openmp-commits] [openmp] [WIP] [OpenMP] Add unit tests for nextgen plugins (PR #74398)
Joseph Huber via Openmp-commits
openmp-commits at lists.llvm.org
Mon Dec 4 17:37:02 PST 2023
================
@@ -0,0 +1,26 @@
+set(LIBOMPTARGET_BUILD_AMDGPU_PLUGIN TRUE CACHE BOOL
+ "Whether to build AMDGPU plugin")
+set(LIBOMPTARGET_BUILD_CUDA_PLUGIN TRUE CACHE BOOL
+ "Whether to build CUDA plugin")
+
+set(PLUGINS_TEST_COMMON omptarget OMPT omptarget.devicertl)
+set(PLUGINS_TEST_SOURCES NextgenPluginsTest.cpp)
+set(PLUGINS_TEST_INCLUDE ${LIBOMPTARGET_INCLUDE_DIR})
+
+if (LIBOMPTARGET_BUILD_AMDGPU_PLUGIN)
----------------
jhuber6 wrote:
```suggestion
if(TARGET omptarget.rtl.amdgpu)
```
We should be able to just check the existence of the target so long as we add the unit tests after the main source.
https://github.com/llvm/llvm-project/pull/74398
More information about the Openmp-commits
mailing list