SWDEV-445539, SWDEV-445549 - Restore kernel launch prof data.

Issue is due to INIT_hipLaunchKernel_CB_ARGS_DATA turns out to be empty when we generate new hip_prof_str.h with since
extra space introduced by https://gerrit-git.amd.com/c/compute/ec/clr/+/846275/77/hipamd/src/hip_module.cpp#667

Change-Id: Id251956c1663483cc7ab11a3722769cb5b0d3664
This commit is contained in:
Jaydeep Patel
2024-02-12 11:36:28 +00:00
committed by Jaydeepkumar Patel
parent 3a5e8bac40
commit d1b75659f2
2 changed files with 8 additions and 2 deletions
@@ -4776,6 +4776,12 @@ typedef struct hip_api_data_s {
};
// hipLaunchKernel[('const void*', 'function_address'), ('dim3', 'numBlocks'), ('dim3', 'dimBlocks'), ('void**', 'args'), ('size_t', 'sharedMemBytes'), ('hipStream_t', 'stream')]
#define INIT_hipLaunchKernel_CB_ARGS_DATA(cb_data) { \
cb_data.args.hipLaunchKernel.function_address = (const void*)hostFunction; \
cb_data.args.hipLaunchKernel.numBlocks = (dim3)gridDim; \
cb_data.args.hipLaunchKernel.dimBlocks = (dim3)blockDim; \
cb_data.args.hipLaunchKernel.args = (void**)args; \
cb_data.args.hipLaunchKernel.sharedMemBytes = (size_t)sharedMemBytes; \
cb_data.args.hipLaunchKernel.stream = (hipStream_t)stream; \
};
// hipMalloc[('void**', 'ptr'), ('size_t', 'size')]
#define INIT_hipMalloc_CB_ARGS_DATA(cb_data) { \