File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1437,7 +1437,7 @@ static pi_result populateDeviceCacheIfNeeded(pi_platform Platform) {
1437
1437
// Additionally we need to cache all sub-devices too, such that they
1438
1438
// are readily visible to the piextDeviceCreateWithNativeHandle.
1439
1439
//
1440
- pi_uint32 SubDevicesCount;
1440
+ pi_uint32 SubDevicesCount = 0 ;
1441
1441
ZE_CALL (zeDeviceGetSubDevices,
1442
1442
(Device->ZeDevice , &SubDevicesCount, nullptr ));
1443
1443
@@ -1449,7 +1449,7 @@ static pi_result populateDeviceCacheIfNeeded(pi_platform Platform) {
1449
1449
// cache.
1450
1450
for (uint32_t I = 0 ; I < SubDevicesCount; ++I) {
1451
1451
std::unique_ptr<_pi_device> PiSubDevice (
1452
- new _pi_device (ZeSubdevices[I], Platform));
1452
+ new _pi_device (ZeSubdevices[I], Platform, true ));
1453
1453
pi_result Result = PiSubDevice->initialize ();
1454
1454
if (Result != PI_SUCCESS) {
1455
1455
delete[] ZeSubdevices;
You can’t perform that action at this time.
0 commit comments