summaryrefslogtreecommitdiff
path: root/utests/utest_helper.hpp
diff options
context:
space:
mode:
authorMeng Mengmeng <mengmeng.meng@intel.com>2015-07-15 01:22:34 +0800
committerYang Rong <rong.r.yang@intel.com>2015-07-15 16:56:45 +0800
commit83f2ce719adfcae6433026b884e916d9c0b0ce65 (patch)
tree40e97b32f889d147d08b7238d98a2f5fbdc332fb /utests/utest_helper.hpp
parent6e85bd3d03acc298ef5ee2c4fac6c3d4e9b66e27 (diff)
downloadbeignet-83f2ce719adfcae6433026b884e916d9c0b0ce65.tar.gz
correct ULP value in utests
Set a global function in utests to get the right ULP value.
Diffstat (limited to 'utests/utest_helper.hpp')
-rw-r--r--utests/utest_helper.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/utests/utest_helper.hpp b/utests/utest_helper.hpp
index 6d097662..3b17606d 100644
--- a/utests/utest_helper.hpp
+++ b/utests/utest_helper.hpp
@@ -165,6 +165,7 @@ extern cl_mem buf[MAX_BUFFER_N];
extern void* buf_data[MAX_BUFFER_N];
extern size_t globals[3];
extern size_t locals[3];
+extern float ULPSIZE_FAST_MATH;
enum {
SOURCE = 0,
@@ -233,5 +234,8 @@ extern int cl_INT_ULP(int int_number);
/* subtract the time */
double time_subtract(struct timeval *y, struct timeval *x, struct timeval *result);
+/* check ulpsize */
+float select_ulpsize(float ULPSIZE_FAST_MATH, float ULPSIZE_NO_FAST_MATH);
+
#endif /* __UTEST_HELPER_HPP__ */