diff options
author | Yongjia Zhang <zhang_yong_jia@126.com> | 2014-06-23 23:09:33 +0800 |
---|---|---|
committer | Zhigang Gong <zhigang.gong@intel.com> | 2014-06-12 16:46:01 +0800 |
commit | 47874592adac08862cfefd5c7915b926cc37a900 (patch) | |
tree | 95e57b940a8744a61c39ea3ba97427d8a316b218 /src/performance.h | |
parent | c5bdf04f9a3c295258f67fcdba39ef72fe5d9c8c (diff) |
Fix the same kernel name issue of OCL_OUTPUT_KERNEL_PERF
Now it treats kernels with same kernel name and different build
options separately. When OCL_OUTPUT_KERNEL_PERF==1, it outputs the
time summary as before, but if OCL_OUTPUT_KERNEL_PERF==2, it will
output the time details including the kernel build options and
kernels with same kernel name but different build options will
output separately.
v2: use strncmp and strncpy instead of strcmp and strcpy.
Signed-off-by: Yongjia Zhang <yongjia.zhang@intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Diffstat (limited to 'src/performance.h')
-rw-r--r-- | src/performance.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/performance.h b/src/performance.h index c747743c..1e750545 100644 --- a/src/performance.h +++ b/src/performance.h @@ -5,7 +5,7 @@ extern int b_output_kernel_perf; void time_start(cl_context context, const char * kernel_name, cl_command_queue cq); -void time_end(cl_context context, const char * kernel_name, cl_command_queue cq); +void time_end(cl_context context, const char * kernel_name, const char * build_opt, cl_command_queue cq); void initialize_env_var(); |