mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
Add PowerSaving debug variable.
- It allows to easily turn ON the power saving mode for the driver. - In that mode, whenever GPU is not ready it will put current thread to sleep, thread is resumed when GPU completes. - PowerSaving mode reduces CPU utilization on blocking calls, while increasing completion latencies. Change-Id: I3de83713687952ac31a1ec8c397f48aa4212781d
This commit is contained in:
committed by
sys_ocldev
parent
8c87fdd431
commit
4341ad0323
@@ -1389,6 +1389,7 @@ HWTEST_F(EventTest, givenQuickKmdSleepRequestWhenWaitIsCalledThenPassRequestToWa
|
||||
pDevice->resetCommandStreamReceiver(csr);
|
||||
|
||||
Event event(pCmdQ, CL_COMMAND_NDRANGE_KERNEL, 0, 0);
|
||||
event.updateCompletionStamp(1u, 1u, 1u);
|
||||
|
||||
EXPECT_CALL(*csr, waitForCompletionWithTimeout(::testing::_,
|
||||
localHwInfo.capabilityTable.kmdNotifyProperties.delayQuickKmdSleepMicroseconds, ::testing::_))
|
||||
@@ -1414,6 +1415,7 @@ HWTEST_F(EventTest, givenNonQuickKmdSleepRequestWhenWaitIsCalledThenPassRequestT
|
||||
pDevice->resetCommandStreamReceiver(csr);
|
||||
|
||||
Event event(pCmdQ, CL_COMMAND_NDRANGE_KERNEL, 0, 0);
|
||||
event.updateCompletionStamp(1u, 1u, 1u);
|
||||
|
||||
EXPECT_CALL(*csr, waitForCompletionWithTimeout(::testing::_,
|
||||
localHwInfo.capabilityTable.kmdNotifyProperties.delayKmdNotifyMicroseconds, ::testing::_))
|
||||
|
||||
Reference in New Issue
Block a user