summaryrefslogtreecommitdiff
path: root/utests/compiler_time_stamp.cpp
Commit message (Collapse)AuthorAgeFilesLines
* use different pointer alignment for different implementationGuo Yejun2016-08-031-1/+3
| | | | | | | | | | 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>
* add functions cl_check_beignet.Luo Xionghu2016-04-221-0/+3
| | | | | | | __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>
* GBE/libocl: Add __gen_ocl_get_timestamp() to get timestamp.Ruiling Song2014-09-181-0/+52
Gen provide tm0 register for intra-kernel profiling. Here we provide an API __gen_ocl_get_timestamp() to return the timestamp in TM. The return type is defined as: struct time_stamp { ulong tick; uint event; }; 'tick' is a 64bit time tick. 'event' stores a value which means whether a tmEvent has occured (non-zero) or not (0). tmEvent includes time-impacting event such as context switch or frequency change since last time tm0 was read. I add a sample in the kernels/compiler_time_stamp.cl. Hope it would help you understand how to use it. V2: Introduce ir::ARFRegister to avoid directly use of nr/subnr in Gen IR. Rename __gen_ocl_extract_reg to __gen_ocl_region. Rename beignet_get_time_stamp to __gen_ocl_get_timestamp. Signed-off-by: Ruiling Song <ruiling.song@intel.com> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>