mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
performance: Improve ULLS light residency management
-skip bo::wait if completion fence not needed -do not restart exec on evict Related-To: NEO-13922 Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
4e9e995dca
commit
35eae3f977
@@ -852,7 +852,7 @@ HWTEST_F(DrmDirectSubmissionTest, givenDirectSubmissionLightWhenExecTimeoutReach
|
||||
ResidencyContainer residencyContainer{};
|
||||
batchBuffer.allocationsForResidency = &residencyContainer;
|
||||
drmDirectSubmission.ringStart = true;
|
||||
static_cast<DrmMemoryOperationsHandler *>(executionEnvironment.rootDeviceEnvironments[device->getRootDeviceIndex()]->memoryOperationsInterface.get())->obtainAndResetNewResourcesSinceLastRingSubmit();
|
||||
EXPECT_TRUE(static_cast<DrmMemoryOperationsHandler *>(executionEnvironment.rootDeviceEnvironments[device->getRootDeviceIndex()]->memoryOperationsInterface.get())->obtainAndResetNewResourcesSinceLastRingSubmit());
|
||||
|
||||
drmDirectSubmission.lastUllsLightExecTimestamp = std::chrono::steady_clock::time_point{};
|
||||
drmDirectSubmission.cpuTimePointReturnValue = std::chrono::time_point<std::chrono::steady_clock>::max();
|
||||
@@ -871,6 +871,7 @@ HWTEST_F(DrmDirectSubmissionTest, givenDirectSubmissionLightWhenExecTimeoutReach
|
||||
|
||||
drmDirectSubmission.ringStart = false;
|
||||
executionEnvironment.memoryManager->freeGraphicsMemory(commandBuffer);
|
||||
EXPECT_FALSE(static_cast<DrmMemoryOperationsHandler *>(executionEnvironment.rootDeviceEnvironments[device->getRootDeviceIndex()]->memoryOperationsInterface.get())->obtainAndResetNewResourcesSinceLastRingSubmit());
|
||||
}
|
||||
|
||||
HWTEST_F(DrmDirectSubmissionTest, givenDirectSubmissionLightWhenNoRegisteredResourcesThenNoRestart) {
|
||||
|
||||
Reference in New Issue
Block a user