@@ -334,8 +334,9 @@ bool deviceIsAllowed(const DeviceDescT &DeviceDesc,
334334  return  ShouldDeviceBeAllowed;
335335}
336336
337- void  applyAllowList (std::vector<RT::PiDevice> &PiDevices,
338-                     RT::PiPlatform PiPlatform, const  PluginPtr &Plugin) {
337+ void  applyAllowList (std::vector<sycl::detail::pi::PiDevice> &PiDevices,
338+                     sycl::detail::pi::PiPlatform PiPlatform,
339+                     const  PluginPtr &Plugin) {
339340
340341  AllowListParsedT AllowListParsed =
341342      parseAllowList (SYCLConfig<SYCL_DEVICE_ALLOWLIST>::get ());
@@ -363,13 +364,13 @@ void applyAllowList(std::vector<RT::PiDevice> &PiDevices,
363364                         PiPlatform, Plugin));
364365
365366  int  InsertIDx = 0 ;
366-   for  (RT ::PiDevice Device : PiDevices) {
367+   for  (sycl::detail::pi ::PiDevice Device : PiDevices) {
367368    auto  DeviceImpl = PlatformImpl->getOrMakeDeviceImpl (Device, PlatformImpl);
368369    //  get DeviceType value and put it to DeviceDesc
369-     RT ::PiDeviceType PiDevType;
370-     Plugin->call <PiApiKind::piDeviceGetInfo>(Device, PI_DEVICE_INFO_TYPE, 
371-                                               sizeof (RT ::PiDeviceType),
372-                                               &PiDevType, nullptr );
370+     sycl::detail::pi ::PiDeviceType PiDevType;
371+     Plugin->call <PiApiKind::piDeviceGetInfo>(
372+         Device, PI_DEVICE_INFO_TYPE,  sizeof (sycl::detail::pi ::PiDeviceType),
373+         &PiDevType, nullptr );
373374    sycl::info::device_type DeviceType = pi::cast<info::device_type>(PiDevType);
374375    for  (const  auto  &SyclDeviceType : getSyclDeviceTypeMap ()) {
375376      if  (SyclDeviceType.second  == DeviceType) {
0 commit comments