Skip to content

Commit

Permalink
[SYCL][L0] In piextQueueGetNativeHandle create a L0 queue if it was n…
Browse files Browse the repository at this point in the history
…ot yet created (#7253)

Signed-off-by: Sergey V Maslov <sergey.v.maslov@intel.com>
  • Loading branch information
smaslov-intel authored Nov 2, 2022
1 parent bf06295 commit 5d0d4ef
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sycl/plugins/level_zero/pi_level_zero.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3794,8 +3794,10 @@ pi_result piextQueueGetNativeHandle(pi_queue Queue,
std::shared_lock<pi_shared_mutex> lock(Queue->Mutex);

auto ZeQueue = pi_cast<ze_command_queue_handle_t *>(NativeHandle);
// Extract the Level Zero compute queue handle from the given PI queue
*ZeQueue = Queue->ComputeQueueGroup.ZeQueues[0];

// Extract a Level Zero compute queue handle from the given PI queue
uint32_t QueueGroupOrdinalUnused;
*ZeQueue = Queue->ComputeQueueGroup.getZeQueue(&QueueGroupOrdinalUnused);
return PI_SUCCESS;
}

Expand Down

0 comments on commit 5d0d4ef

Please sign in to comment.