feature: make CB event initially signaled

Related-To: NEO-11378

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
Bartosz Dunajski
2024-05-14 13:07:28 +00:00
committed by Compute-Runtime-Automation
parent f10439aea2
commit 21114ddc03
4 changed files with 11 additions and 9 deletions

View File

@@ -220,7 +220,7 @@ void EventImp<TagSizeT>::assignKernelEventCompletionData(void *address) {
template <typename TagSizeT>
ze_result_t EventImp<TagSizeT>::queryCounterBasedEventStatus() {
if (!this->inOrderExecInfo.get()) {
return ZE_RESULT_NOT_READY;
return ZE_RESULT_SUCCESS;
}
auto waitValue = getInOrderExecSignalValueWithSubmissionCounter();
@@ -520,7 +520,7 @@ ze_result_t EventImp<TagSizeT>::waitForUserFence(uint64_t timeout) {
}
if (!inOrderExecInfo) {
return ZE_RESULT_NOT_READY;
return ZE_RESULT_SUCCESS;
}
uint64_t waitAddress = castToUint64(ptrOffset(inOrderExecInfo->getBaseHostAddress(), this->inOrderAllocationOffset));