@@ -139,7 +139,7 @@ TEST_P(EventPoolTest, Basic) {
139
139
ur_event_handle_t first;
140
140
ze_event_handle_t zeFirst;
141
141
{
142
- auto pool = cache->borrow (device->Id );
142
+ auto pool = cache->borrow (device->Id . value () );
143
143
144
144
first = pool->allocate ();
145
145
zeFirst = first->getZeEvent ();
@@ -148,7 +148,7 @@ TEST_P(EventPoolTest, Basic) {
148
148
ur_event_handle_t second;
149
149
ze_event_handle_t zeSecond;
150
150
{
151
- auto pool = cache->borrow (device->Id );
151
+ auto pool = cache->borrow (device->Id . value () );
152
152
153
153
second = pool->allocate ();
154
154
zeSecond = second->getZeEvent ();
@@ -165,7 +165,7 @@ TEST_P(EventPoolTest, Threaded) {
165
165
for (int iters = 0 ; iters < 3 ; ++iters) {
166
166
for (int th = 0 ; th < 10 ; ++th) {
167
167
threads.emplace_back ([&] {
168
- auto pool = cache->borrow (device->Id );
168
+ auto pool = cache->borrow (device->Id . value () );
169
169
std::vector<ur_event_handle_t > events;
170
170
for (int i = 0 ; i < 100 ; ++i) {
171
171
events.push_back (pool->allocate ());
@@ -183,7 +183,7 @@ TEST_P(EventPoolTest, Threaded) {
183
183
}
184
184
185
185
TEST_P (EventPoolTest, ProviderNormalUseMostFreePool) {
186
- auto pool = cache->borrow (device->Id );
186
+ auto pool = cache->borrow (device->Id . value () );
187
187
std::list<ur_event_handle_t > events;
188
188
for (int i = 0 ; i < 128 ; ++i) {
189
189
events.push_back (pool->allocate ());
0 commit comments