Summary: This adds a basic outline for adding 'conformance' tests. These are tests that are intended to check device code against a standard. In this case, we will expect this to be filled with math conformance tests to make sure their results are within the ULP requirements we demand. Right now this just *assumes* the GPU libc is there, meaning you'll likely need to do a manual `ninja` before doing `ninja -C runtimes/runtimes-bins offload.conformance`.
9 lines
244 B
CMake
9 lines
244 B
CMake
add_custom_target(offload.conformance)
|
|
|
|
set(PLUGINS_TEST_COMMON LLVMOffload LLVMSupport)
|
|
set(PLUGINS_TEST_INCLUDE ${LIBOMPTARGET_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/common)
|
|
|
|
add_subdirectory(device_code)
|
|
|
|
add_conformance_test(sin sin.cpp)
|