From bd06a268ccf9bc214457fc64210e359f18f8fd2c Mon Sep 17 00:00:00 2001
From: foreman
Date: Mon, 9 Jul 2018 11:54:21 -0400
Subject: [PATCH] P4 to Git Change 1577743 by jatang@jatang-opencl-hsa-stg5 on
2018/07/09 11:44:49
SWDEV-126897 - Fix enqueue_block_capture_event_profiling_info_after_execution test.
Need to set eng_clk.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocblit.cpp#26 edit
---
rocclr/runtime/device/rocm/rocblit.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/rocclr/runtime/device/rocm/rocblit.cpp b/rocclr/runtime/device/rocm/rocblit.cpp
index 6af9c14434..588fc5b3a6 100644
--- a/rocclr/runtime/device/rocm/rocblit.cpp
+++ b/rocclr/runtime/device/rocm/rocblit.cpp
@@ -2155,6 +2155,7 @@ bool KernelBlitManager::runScheduler(uint64_t vqVM, amd::Memory* schedulerParam,
sp->vqueue_header = vqVM;
sp->parentAQL = sp->kernarg_address + sizeof(SchedulerParam);
+ sp->eng_clk = (1000 * 1024) / dev().info().maxEngineClockFrequency_;
cl_mem mem = as_cl(schedulerParam);
setArgument(kernels_[Scheduler], 0, sizeof(cl_mem), &mem);