Files
clang-p2996/offload/unittests/OffloadAPI/CMakeLists.txt
Ross Brunton e83c80340f [Offload] Split offload unittests into multiple files (#142418)
Rather than a single `offload.unittests` file, this will produce
`device.unittests`, `event.unittests`, etc.. This should reduce time
spent building tests, and make it easier to manually run a subset of
the tests.

Note that `check-offload-unit` will still run all the tests.
2025-06-02 11:48:12 -05:00

36 lines
889 B
CMake

set(PLUGINS_TEST_COMMON LLVMOffload)
set(PLUGINS_TEST_INCLUDE ${LIBOMPTARGET_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/common)
add_subdirectory(device_code)
add_offload_unittest("device"
device/olIterateDevices.cpp
device/olGetDeviceInfo.cpp
device/olGetDeviceInfoSize.cpp)
add_offload_unittest("event"
event/olDestroyEvent.cpp
event/olWaitEvent.cpp)
add_offload_unittest("kernel"
kernel/olGetKernel.cpp
kernel/olLaunchKernel.cpp)
add_offload_unittest("memory"
memory/olMemAlloc.cpp
memory/olMemFree.cpp
memory/olMemcpy.cpp)
add_offload_unittest("platform"
platform/olGetPlatformInfo.cpp
platform/olGetPlatformInfoSize.cpp)
add_offload_unittest("program"
program/olCreateProgram.cpp
program/olDestroyProgram.cpp)
add_offload_unittest("queue"
queue/olCreateQueue.cpp
queue/olWaitQueue.cpp
queue/olDestroyQueue.cpp)