| 1 |
set(PLUGINS_TEST_COMMON LLVMOffload) |
| 2 |
set(PLUGINS_TEST_INCLUDE ${LIBOMPTARGET_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/common) |
| 3 |
|
| 4 |
add_subdirectory(device_code) |
| 5 |
|
| 6 |
add_offload_unittest("device" |
| 7 |
device/olIterateDevices.cpp |
| 8 |
device/olGetDeviceInfo.cpp |
| 9 |
device/olGetDeviceInfoSize.cpp) |
| 10 |
|
| 11 |
add_offload_unittest("event" |
| 12 |
event/olCreateEvent.cpp |
| 13 |
event/olDestroyEvent.cpp |
| 14 |
event/olSyncEvent.cpp |
| 15 |
event/olGetEventInfo.cpp |
| 16 |
event/olGetEventInfoSize.cpp) |
| 17 |
|
| 18 |
add_offload_unittest("init" |
| 19 |
init/olInit.cpp) |
| 20 |
target_compile_definitions("init.unittests" PRIVATE DISABLE_WRAPPER) |
| 21 |
|
| 22 |
add_offload_unittest("kernel" |
| 23 |
kernel/olCalculateOptimalOccupancy.cpp |
| 24 |
kernel/olLaunchKernel.cpp) |
| 25 |
|
| 26 |
add_offload_unittest("memory" |
| 27 |
memory/olMemAlloc.cpp |
| 28 |
memory/olMemFill.cpp |
| 29 |
memory/olMemFree.cpp |
| 30 |
memory/olMemcpy.cpp |
| 31 |
memory/olGetMemInfo.cpp |
| 32 |
memory/olGetMemInfoSize.cpp |
| 33 |
memory/olMemRegister.cpp) |
| 34 |
|
| 35 |
add_offload_unittest("platform" |
| 36 |
platform/olGetPlatformInfo.cpp |
| 37 |
platform/olGetPlatformInfoSize.cpp) |
| 38 |
|
| 39 |
add_offload_unittest("program" |
| 40 |
program/olCreateProgram.cpp |
| 41 |
program/olIsValidBinary.cpp |
| 42 |
program/olDestroyProgram.cpp) |
| 43 |
|
| 44 |
add_offload_unittest("queue" |
| 45 |
queue/olCreateQueue.cpp |
| 46 |
queue/olSyncQueue.cpp |
| 47 |
queue/olDestroyQueue.cpp |
| 48 |
queue/olGetQueueInfo.cpp |
| 49 |
queue/olGetQueueInfoSize.cpp |
| 50 |
queue/olWaitEvents.cpp |
| 51 |
queue/olLaunchHostFunction.cpp) |
| 52 |
|
| 53 |
add_offload_unittest("symbol" |
| 54 |
symbol/olGetSymbol.cpp |
| 55 |
symbol/olGetSymbolInfo.cpp |
| 56 |
symbol/olGetSymbolInfoSize.cpp) |