[Beignet] [PATCH 15/15] Add profiling function hook in gbe_bin_generater
junyan.he at inbox.com
junyan.he at inbox.com
Wed Aug 12 01:49:59 PDT 2015
From: Junyan He <junyan.he at linux.intel.com>
Signed-off-by: Junyan He <junyan.he at linux.intel.com>
---
backend/src/gbe_bin_interpreter.cpp | 4 ++++
src/cl_command_queue_gen7.c | 1 -
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/backend/src/gbe_bin_interpreter.cpp b/backend/src/gbe_bin_interpreter.cpp
index 4594a0a..4756842 100644
--- a/backend/src/gbe_bin_interpreter.cpp
+++ b/backend/src/gbe_bin_interpreter.cpp
@@ -22,6 +22,7 @@
#include "sys/platform.cpp"
#include "ir/constant.cpp"
#include "ir/printf.cpp"
+#include "ir/profiling.cpp"
#pragma GCC diagnostic ignored "-Wunused-function"
#pragma GCC diagnostic ignored "-Wunused-variable"
@@ -64,6 +65,9 @@ struct BinInterpCallBackInitializer
gbe_kernel_get_sampler_data = gbe::kernelGetSamplerData;
gbe_kernel_get_image_data = gbe::kernelGetImageData;
gbe_kernel_get_arg_info = gbe::kernelGetArgInfo;
+ gbe_get_profiling_bti = gbe::kernelGetProfilingBTI;
+ gbe_dup_profiling = gbe::kernelDupProfiling;
+ gbe_output_profiling = gbe::kernelOutputProfiling;
gbe_get_printf_num = gbe::kernelGetPrintfNum;
gbe_get_printf_buf_bti = gbe::kernelGetPrintfBufBTI;
gbe_get_printf_indexbuf_bti = gbe::kernelGetPrintfIndexBufBTI;
diff --git a/src/cl_command_queue_gen7.c b/src/cl_command_queue_gen7.c
index d8664d1..898ef43 100644
--- a/src/cl_command_queue_gen7.c
+++ b/src/cl_command_queue_gen7.c
@@ -402,7 +402,6 @@ cl_command_queue_ND_range_gen7(cl_command_queue queue,
if (cl_bind_printf(gpgpu, ker, printf_info, printf_num, global_size) != 0)
goto error;
}
-
if (interp_get_profiling_bti(ker->opaque) != 0) {
if (cl_bind_profiling(gpgpu, simd_sz, ker, global_size, local_sz, interp_get_profiling_bti(ker->opaque)))
goto error;
--
1.7.9.5
More information about the Beignet
mailing list