summaryrefslogtreecommitdiff
path: root/utests/compiler_time_stamp.cpp
diff options
context:
space:
mode:
authorGuo Yejun <yejun.guo@intel.com>2016-08-02 04:16:19 +0800
committerYang Rong <rong.r.yang@intel.com>2016-08-03 18:20:22 +0800
commit8030099e578c57f71e9abc89b05ce23dc34e6618 (patch)
tree8065e61ae3dafba4224d4e7be3954ccd07320bf7 /utests/compiler_time_stamp.cpp
parentaa077d9279cedc28704d02444e26fab0f77f3bbd (diff)
downloadbeignet-8030099e578c57f71e9abc89b05ce23dc34e6618.tar.gz
use different pointer alignment for different implementation
beignet only requirs 64 bytes alignment while other implementations might require 4096 alignment. and also change function cl_check_beignet for better output message. Signed-off-by: Guo Yejun <yejun.guo@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.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/utests/compiler_time_stamp.cpp b/utests/compiler_time_stamp.cpp
index e3765222..43165c17 100644
--- a/utests/compiler_time_stamp.cpp
+++ b/utests/compiler_time_stamp.cpp
@@ -16,8 +16,10 @@ static void cpu(int global_id, int *src, int *dst) {
void compiler_time_stamp(void)
{
- if (!cl_check_beignet())
+ if (!cl_check_beignet()) {
+ printf("Not beignet device , Skip!");
return;
+ }
const size_t n = 16;
int cpu_dst[16], cpu_src[16];