summaryrefslogtreecommitdiff
path: root/utests/compiler_time_stamp.cpp
diff options
context:
space:
mode:
authorLuo Xionghu <xionghu.luo@intel.com>2016-04-21 18:50:41 +0800
committerYang Rong <rong.r.yang@intel.com>2016-04-22 18:13:17 +0800
commit6e62f6eca7f4abed71728b92d9d9aee9799c8cb7 (patch)
treea7f7f519865028ec49a54b5eb92e6bcf5dc50760 /utests/compiler_time_stamp.cpp
parent830d3c32d00669f7eec5d80a083b3a0a88b39d11 (diff)
downloadbeignet-6e62f6eca7f4abed71728b92d9d9aee9799c8cb7.tar.gz
add functions cl_check_beignet.
__gen_ocl_get_timestamp functions is beignet builtin. Signed-off-by: Luo Xionghu <xionghu.luo@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
Diffstat (limited to 'utests/compiler_time_stamp.cpp')
-rw-r--r--utests/compiler_time_stamp.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/utests/compiler_time_stamp.cpp b/utests/compiler_time_stamp.cpp
index 4da57523..e3765222 100644
--- a/utests/compiler_time_stamp.cpp
+++ b/utests/compiler_time_stamp.cpp
@@ -16,6 +16,9 @@ static void cpu(int global_id, int *src, int *dst) {
void compiler_time_stamp(void)
{
+ if (!cl_check_beignet())
+ return;
+
const size_t n = 16;
int cpu_dst[16], cpu_src[16];