From bd40deaccc261d864c94cae0e89277b8bb1bd042 Mon Sep 17 00:00:00 2001
From: foreman
Date: Wed, 18 Dec 2019 14:42:18 -0500
Subject: [PATCH] P4 to Git Change 2047959 by
skudchad@skudchad_test2_win_opencl on 2019/12/18 14:40:28
SWDEV-213000 - Add notifyCmdQueue in ihipModuleLaunchKernel. This torques timing and flushes the queue immediately. Investigation pending.
ReviewBoardURL = http://ocltc.amd.com/reviews/r/18408/diff/
Affected files ...
... //depot/stg/opencl/drivers/opencl/api/hip/hip_module.cpp#51 edit
[ROCm/hip commit: 3beb70b72a1d3c0e8e21f40b5709849430aca76f]
---
projects/hip/api/hip/hip_module.cpp | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/projects/hip/api/hip/hip_module.cpp b/projects/hip/api/hip/hip_module.cpp
index c13a077a0e..91635fa12f 100644
--- a/projects/hip/api/hip/hip_module.cpp
+++ b/projects/hip/api/hip/hip_module.cpp
@@ -354,6 +354,11 @@ hipError_t ihipModuleLaunchKernel(hipFunction_t f,
command->release();
+ // FIXME: SWDEV-213000 - Force notifyCmdQueue to indicate immediate dispatch to HW
+ // This offsets the commandqueue timing and solves 213000. Investigation pending
+
+ command->notifyCmdQueue();
+
return hipSuccess;
}