mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 21:18:24 +08:00
test: reduce gpu hang check period in test expecting gpu hang
this reduces test execution time by 500 ms Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
3f083360a2
commit
db12dc78a8
@@ -96,6 +96,7 @@ TEST_F(FenceTest, GivenGpuHangWhenHostSynchronizeIsCalledThenDeviceLostIsReturne
|
||||
const auto csr = std::make_unique<MockCommandStreamReceiver>(*neoDevice->getExecutionEnvironment(), 0, neoDevice->getDeviceBitfield());
|
||||
csr->isGpuHangDetectedReturnValue = true;
|
||||
csr->testTaskCountReadyReturnValue = false;
|
||||
csr->gpuHangCheckPeriod = {};
|
||||
|
||||
Mock<CommandQueue> cmdqueue(device, csr.get());
|
||||
ze_fence_desc_t desc = {};
|
||||
|
||||
@@ -99,6 +99,7 @@ HWTEST_F(CommandQueueHwTest, givenEnableTimestampWaitForQueuesWhenGpuHangDetecte
|
||||
auto mockCSR = new MockCommandStreamReceiver(*executionEnvironment, 0, device->getDeviceBitfield());
|
||||
mockCSR->isGpuHangDetectedReturnValue = true;
|
||||
device->resetCommandStreamReceiver(mockCSR);
|
||||
mockCSR->gpuHangCheckPeriod = {};
|
||||
|
||||
auto mockTagAllocator = new MockTagAllocator<>(0, device->getMemoryManager());
|
||||
mockCSR->timestampPacketAllocator.reset(mockTagAllocator);
|
||||
|
||||
@@ -37,6 +37,7 @@ class MockCommandStreamReceiver : public CommandStreamReceiver {
|
||||
using CommandStreamReceiver::checkImplicitFlushForGpuIdle;
|
||||
using CommandStreamReceiver::CommandStreamReceiver;
|
||||
using CommandStreamReceiver::globalFenceAllocation;
|
||||
using CommandStreamReceiver::gpuHangCheckPeriod;
|
||||
using CommandStreamReceiver::immWritePostSyncWriteOffset;
|
||||
using CommandStreamReceiver::internalAllocationStorage;
|
||||
using CommandStreamReceiver::latestFlushedTaskCount;
|
||||
|
||||
Reference in New Issue
Block a user