Backend: Add CalcTimestamp and StoreProfiling

Graphics / Beignet - Junyan He [linux.intel.com] - 17 November 2015 02:23 UTC

When in profiling, the profiling inserter function will insert calc_timestamp for each point which we are interested in. At the end of the kernel, just before return, we will insert a store_profiling function call. The function will hold a reference to the global val profiling_buf and avoid it being released when run optimization passes.

228de1e Backend: Add CalcTimestamp and StoreProfiling.
backend/src/llvm/llvm_gen_backend.cpp | 42 ++++++++++++++++++++++++++++
backend/src/llvm/llvm_gen_ocl_function.hxx | 5 ++++
2 files changed, 47 insertions(+)

Upstream: cgit.freedesktop.org


  • Share