fix: zeDeviceGetGlobalTimestamp to use submisison

Related-To: GSD-10253, GSD-9467, GSD-9381, NEO-11908

When EnableGlobalTimestampViaSubmission is set then
zeDeviceGetGlobalTimestamp uses immediate cmd submission
method to get GPU time.

Signed-off-by: Chandio, Bibrak Qamar <bibrak.qamar.chandio@intel.com>
This commit is contained in:
Chandio, Bibrak Qamar
2024-11-27 21:28:50 +00:00
committed by Compute-Runtime-Automation
parent ad881e3f2e
commit ab2e831a4a
25 changed files with 513 additions and 110 deletions

View File

@@ -17,7 +17,7 @@ class MockDeviceTimeDrm : public DeviceTimeDrm {
using DeviceTimeDrm::DeviceTimeDrm;
using DeviceTimeDrm::pDrm;
bool getGpuCpuTimeImpl(TimeStampData *pGpuCpuTime, OSTime *osTime) override {
TimeQueryStatus getGpuCpuTimeImpl(TimeStampData *pGpuCpuTime, OSTime *osTime) override {
getGpuCpuTimeImplCalled++;
if (callBaseGetGpuCpuTimeImpl) {
return DeviceTimeDrm::getGpuCpuTimeImpl(pGpuCpuTime, osTime);
@@ -34,7 +34,7 @@ class MockDeviceTimeDrm : public DeviceTimeDrm {
}
bool callBaseGetGpuCpuTimeImpl = true;
bool getGpuCpuTimeImplResult = true;
TimeQueryStatus getGpuCpuTimeImplResult = TimeQueryStatus::success;
TimeStampData gpuCpuTimeValue{};
uint32_t getGpuCpuTimeImplCalled = 0;