Skip to content

Commit

Permalink
[SYCL][Level Zero] Fix sub-sub-device in immediate cmdlists mode (#7712)
Browse files Browse the repository at this point in the history
We still need to initialize the command lists similarly to the regular
case. Sub-sub-device properties are handler by indexing into those
vectors.
  • Loading branch information
aelovikov-intel authored Dec 10, 2022
1 parent 18718fd commit ed3d35c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions sycl/plugins/level_zero/pi_level_zero.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1201,6 +1201,12 @@ _pi_queue::_pi_queue(std::vector<ze_command_queue_handle_t> &ComputeQueues,
// fixed to one particular compute CCS (it is so for sub-sub-devices).
auto &ComputeQueueGroupInfo = Device->QueueGroup[queue_type::Compute];
ComputeQueueGroup.ZeQueues = ComputeQueues;
// Create space to hold immediate commandlists corresponding to the
// ZeQueues
if (Device->useImmediateCommandLists()) {
ComputeQueueGroup.ImmCmdLists = std::vector<pi_command_list_ptr_t>(
ComputeQueueGroup.ZeQueues.size(), CommandListMap.end());
}
if (ComputeQueueGroupInfo.ZeIndex >= 0) {
ComputeQueueGroup.LowerIndex = ComputeQueueGroupInfo.ZeIndex;
ComputeQueueGroup.UpperIndex = ComputeQueueGroupInfo.ZeIndex;
Expand All @@ -1215,12 +1221,6 @@ _pi_queue::_pi_queue(std::vector<ze_command_queue_handle_t> &ComputeQueues,
ComputeQueueGroup.LowerIndex = FilterLowerIndex;
ComputeQueueGroup.UpperIndex = FilterUpperIndex;
ComputeQueueGroup.NextIndex = ComputeQueueGroup.LowerIndex;
// Create space to hold immediate commandlists corresponding to the
// ZeQueues
if (Device->useImmediateCommandLists()) {
ComputeQueueGroup.ImmCmdLists = std::vector<pi_command_list_ptr_t>(
ComputeQueueGroup.ZeQueues.size(), CommandListMap.end());
}
} else {
die("No compute queue available/allowed.");
}
Expand Down

0 comments on commit ed3d35c

Please sign in to comment.