Skip to content

Commit 33c4449

Browse files
committed
add comments.
Signed-off-by: rehana begam <[email protected]>
1 parent bf50ccd commit 33c4449

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

sycl/plugins/level_zero/pi_level_zero.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1588,7 +1588,7 @@ pi_result _pi_platform::populateDeviceCacheIfNeeded() {
15881588
}
15891589

15901590
// Create PI sub-sub-devices with the sub-device for all the ordinals.
1591-
// A {sub-device, ordinal} points to a specific CCS which constructs
1591+
// Each {ordinal, index} points to a specific CCS which constructs
15921592
// a sub-sub-device at this point.
15931593
for (uint32_t J = 0; J < Ordinals.size(); ++J) {
15941594
for (uint32_t K = 0; K < QueueProperties[Ordinals[J]].numQueues;

sycl/plugins/level_zero/pi_level_zero.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,9 @@ struct _pi_device : _pi_object {
302302
bool hasCopyEngine() const { return ZeCopyQueueGroupIndex >= 0; }
303303

304304
// Initialize the entire PI device.
305-
// Optional param `SubSubDeviceOrdinal` is the compute command queue index
306-
// used to initialize sub-sub-devices.
305+
// Optional param `SubSubDeviceOrdinal` `SubSubDeviceIndex` are the compute
306+
// command queue ordinal and index respectively, used to initialize
307+
// sub-sub-devices.
307308
pi_result initialize(int SubSubDeviceOrdinal = -1,
308309
int SubSubDeviceIndex = -1);
309310

0 commit comments

Comments
 (0)