feature: flush task count on cmd list hostSynchronize if needed

Related-To: NEO-7966

Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
Dunajski, Bartosz
2023-08-22 08:48:42 +00:00
committed by Compute-Runtime-Automation
parent 33d6e775aa
commit 7e6e0da978
7 changed files with 93 additions and 20 deletions

View File

@@ -249,7 +249,6 @@ DECLARE_DEBUG_VARIABLE(int32_t, TrackNumCsrClientsOnSyncPoints, -1, "-1: default
DECLARE_DEBUG_VARIABLE(int32_t, OverrideDriverVersion, -1, "-1: default, >=0: Use value as reported driver version")
DECLARE_DEBUG_VARIABLE(int32_t, WaitForUserFenceOnEventHostSynchronize, -1, "-1: default, 0: Disabled, 1: Enabled. If enabled, use WaitUserFence KMD call for in-order Events instead of active polling on host.")
DECLARE_DEBUG_VARIABLE(int32_t, ProgramUserInterruptOnResolvedDependency, -1, "-1: default, 0: Disabled, >=1: bitfield. 01b: program after semaphore, 10b: on signaling fence (non-walker append).")
DECLARE_DEBUG_VARIABLE(int32_t, UseCounterAllocToSyncInOrderCmdList, -1, "-1: default, 0: Disabled, 1: Skip task count check and use only Counter allocation to synchronize cmd list.")
/*LOGGING FLAGS*/
DECLARE_DEBUG_VARIABLE(int32_t, PrintDriverDiagnostics, -1, "prints driver diagnostics messages to standard output, value corresponds to hint level")

View File

@@ -547,5 +547,4 @@ EnableAIL=1
WaitForUserFenceOnEventHostSynchronize = -1
ProgramUserInterruptOnResolvedDependency = -1
ProgramBarrierInCommandStreamTask = -1
UseCounterAllocToSyncInOrderCmdList = -1
# Please don't edit below this line

View File

@@ -57,3 +57,15 @@
} \
return funcName##Result; \
}
#define ADDMETHOD_CONST(funcName, retType, callBase, defaultReturn, funcParams, invokeParams) \
retType funcName##Result = defaultReturn; \
bool funcName##CallBase = callBase; \
mutable uint32_t funcName##Called = 0u; \
retType funcName funcParams const override { \
funcName##Called++; \
if (funcName##CallBase) { \
return BaseClass::funcName invokeParams; \
} \
return funcName##Result; \
}