Reuse math_brute_force ulp threshold in spir test

Spir test compares floating-point kernel results bit-by-bit with
correct results. However, for math_brute_force kernels, specification
does not ask for SPIR and OpenCL C path to match bit-to-bit. This patch
reuses ulps threshold from math_brute_force folder for math_brute_force
kernels in spir test.

Signed-off-by: Wenju He <wenju.he@intel.com>
This commit is contained in:
Wenju He
2019-04-11 20:25:05 +08:00
committed by Alastair Murray
parent f0289e2077
commit e4a2f1e326
7 changed files with 129 additions and 15 deletions

View File

@@ -4,13 +4,17 @@ endfunction()
include_directories(${CLConf_SRC_DIR}/test_common)
# Import function list from math_brute_force
add_definitions(-DFUNCTION_LIST_ULPS_ONLY)
clconf_add_executable(
test_spir
main.cpp
datagen.cpp
run_build_test.cpp
run_services.cpp
kernelargs.cpp)
kernelargs.cpp
../math_brute_force/FunctionList.c)
target_link_libraries(
test_spir${CLConf_SUFFIX}