@@ -560,19 +560,20 @@ ur_result_t urDeviceGetSelected(ur_platform_handle_t hPlatform,
560560 const auto thirdDeviceId = getDeviceId (thirdPart);
561561 deviceList.push_back (DeviceSpec{
562562 DevicePartLevel::SUBSUB, hardwareType, firstDeviceId,
563- secondDeviceId, thirdDeviceId});
563+ secondDeviceId, thirdDeviceId, nullptr });
564564 } else {
565565 // second dot not found, this is a subdevice
566- deviceList.push_back (DeviceSpec{DevicePartLevel::SUB,
567- hardwareType, firstDeviceId ,
568- secondDeviceId });
566+ deviceList.push_back (
567+ DeviceSpec{DevicePartLevel::SUB, hardwareType ,
568+ firstDeviceId, secondDeviceId, 0 , nullptr });
569569 }
570570 } else {
571571 // first dot not found, this is a root device
572572 const auto hardwareType = getRootHardwareType (filterString);
573573 const auto firstDeviceId = getDeviceId (filterString);
574574 deviceList.push_back (DeviceSpec{DevicePartLevel::ROOT,
575- hardwareType, firstDeviceId});
575+ hardwareType, firstDeviceId, 0 ,
576+ 0 , nullptr });
576577 }
577578 }
578579 }
@@ -587,8 +588,9 @@ ur_result_t urDeviceGetSelected(ur_platform_handle_t hPlatform,
587588 // for example, we pretend that "garbage:0;!cuda:*" was just "!cuda:*"
588589 // so we add an implicit accept-all term (equivalent to prepending "*:*;")
589590 // as we would have done if the user had given us the corrected string
590- acceptDeviceList.push_back (DeviceSpec{
591- DevicePartLevel::ROOT, ::UR_DEVICE_TYPE_ALL, DeviceIdTypeALL});
591+ acceptDeviceList.push_back (DeviceSpec{DevicePartLevel::ROOT,
592+ ::UR_DEVICE_TYPE_ALL,
593+ DeviceIdTypeALL, 0 , 0 , nullptr });
592594 }
593595
594596 logger::debug (" DEBUG: size of acceptDeviceList = {}" ,
0 commit comments