summaryrefslogtreecommitdiff
path: root/utests/utest_helper.hpp
diff options
context:
space:
mode:
authorGuo Yejun <yejun.guo@intel.com>2014-11-21 15:53:42 +0800
committerZhigang Gong <zhigang.gong@intel.com>2014-12-02 17:16:44 +0800
commit9174fec835760941cd13c49c9d161bd13bb7b0e6 (patch)
treeb6d71a4bf00de009c840dbb6d5a42684aa166c74 /utests/utest_helper.hpp
parent3db0329853f97d6cd06a82d3277b6294065c6c51 (diff)
downloadbeignet-9174fec835760941cd13c49c9d161bd13bb7b0e6.tar.gz
add test of cl_mem_use_host_ptr into benchmark
and also refine the code to move time_subtract into utest_helper.hpp/cpp Signed-off-by: Guo Yejun <yejun.guo@intel.com> Reviewed-by: "Yang, Rong R" <rong.r.yang@intel.com>
Diffstat (limited to 'utests/utest_helper.hpp')
-rw-r--r--utests/utest_helper.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/utests/utest_helper.hpp b/utests/utest_helper.hpp
index 026eb1cb..5d8e835c 100644
--- a/utests/utest_helper.hpp
+++ b/utests/utest_helper.hpp
@@ -230,5 +230,8 @@ extern float cl_FLT_ULP(float float_number);
/* Calculator ULP of each INT value */
extern int cl_INT_ULP(int int_number);
+/* subtract the time */
+int time_subtract(struct timeval *y, struct timeval *x, struct timeval *result);
+
#endif /* __UTEST_HELPER_HPP__ */