Skip to content

Commit 5d0d4ef

Browse files
[SYCL][L0] In piextQueueGetNativeHandle create a L0 queue if it was not yet created (#7253)
Signed-off-by: Sergey V Maslov <[email protected]>
1 parent bf06295 commit 5d0d4ef

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sycl/plugins/level_zero/pi_level_zero.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3794,8 +3794,10 @@ pi_result piextQueueGetNativeHandle(pi_queue Queue,
37943794
std::shared_lock<pi_shared_mutex> lock(Queue->Mutex);
37953795

37963796
auto ZeQueue = pi_cast<ze_command_queue_handle_t *>(NativeHandle);
3797-
// Extract the Level Zero compute queue handle from the given PI queue
3798-
*ZeQueue = Queue->ComputeQueueGroup.ZeQueues[0];
3797+
3798+
// Extract a Level Zero compute queue handle from the given PI queue
3799+
uint32_t QueueGroupOrdinalUnused;
3800+
*ZeQueue = Queue->ComputeQueueGroup.getZeQueue(&QueueGroupOrdinalUnused);
37993801
return PI_SUCCESS;
38003802
}
38013803

0 commit comments

Comments
 (0)