mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 18:06:32 +08:00
Kmd notify improvements [1/n]: Quick KMD sleep optimization
- KmdNotifyProperties struct for CapabilityTable that can be extended by incoming KmdNotify related optimizations - Quick KMD sleep optimization that is called from async events handler - Optimization makes a taskCount check in busy loop with much smaller delay than basic version of KMD Notify optimization Change-Id: I60c851c59895f0cf9de1e1f21e755a8b4c2fe900
This commit is contained in:
committed by
sys_ocldev
parent
029094437a
commit
516082e7c5
@@ -151,7 +151,7 @@ TEST(UserEvent, initialUserEventStateIsNotReadyForSubmission) {
|
||||
TEST(UserEvent, GIVENUserEventWHENgetTaskLevelTHENSuccess) {
|
||||
MyUserEvent uEvent;
|
||||
EXPECT_EQ(0U, uEvent.getTaskLevel());
|
||||
EXPECT_FALSE(uEvent.wait(false));
|
||||
EXPECT_FALSE(uEvent.wait(false, false));
|
||||
}
|
||||
|
||||
TEST(UserEvent, userEventAfterSetingStatusIsReadyForSubmission) {
|
||||
@@ -930,7 +930,7 @@ TEST_F(EventTests, waitForEventsDestroysTemporaryAllocations) {
|
||||
|
||||
TEST_F(EventTest, UserEvent_Wait_NonBlocking) {
|
||||
UserEvent event;
|
||||
auto result = event.wait(false);
|
||||
auto result = event.wait(false, false);
|
||||
EXPECT_FALSE(result);
|
||||
}
|
||||
|
||||
@@ -1083,4 +1083,4 @@ TEST_F(EventTests, givenUserEventWhenSetStatusIsDoneThenDeviceMutextisAcquired)
|
||||
mockedEvent mockEvent(this->context);
|
||||
clSetUserEventStatus(&mockEvent, CL_COMPLETE);
|
||||
EXPECT_TRUE(mockEvent.mutexProperlyAcquired);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user