From 75df64737f001d8a9b38f500b68fae54f4dd3698 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 --- hipamd/api/hip/hip_module.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hipamd/api/hip/hip_module.cpp b/hipamd/api/hip/hip_module.cpp index c13a077a0e..91635fa12f 100644 --- a/hipamd/api/hip/hip_module.cpp +++ b/hipamd/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; }