Wait on timestamps in Event::wait

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
Lukasz Jobczyk
2022-10-06 14:45:59 +00:00
committed by Compute-Runtime-Automation
parent af4e3d510e
commit f91047f2ee
5 changed files with 39 additions and 8 deletions

View File

@ -212,10 +212,19 @@ class MockCommandQueue : public CommandQueue {
bool obtainTimestampPacketForCacheFlush(bool isCacheFlushRequired) const override { return isCacheFlushRequired; }
bool waitForTimestamps(Range<CopyEngineState> copyEnginesToWait, uint32_t taskCount, WaitStatus &status) override { return false; };
bool waitForTimestamps(Range<CopyEngineState> copyEnginesToWait, uint32_t taskCount, WaitStatus &status) override {
waitForTimestampsCalled = true;
return false;
};
void clearDeferredTimestampPackets() override {
CommandQueue::clearDeferredTimestampPackets();
clearDeferredTimestampPacketsCalled = true;
}
bool releaseIndirectHeapCalled = false;
bool waitForTimestampsCalled = false;
bool clearDeferredTimestampPacketsCalled = false;
cl_int writeBufferRetValue = CL_SUCCESS;
uint32_t writeBufferCounter = 0;
bool writeBufferBlocking = false;