@@ -119,19 +119,19 @@ static bool IsBannedPlatform(platform Platform) {
119119// replace uses of this with a helper in adapter object, the adapter
120120// objects will own the ur adapter handles and they'll need to pass them to
121121// urPlatformsGet - so urPlatformsGet will need to be wrapped with a helper
122- std::vector<platform> platform_impl::getAdapterPlatforms (AdapterPtr &Adapter,
122+ std::vector<platform> platform_impl::getAdapterPlatforms (adapter_impl &Adapter,
123123 bool Supported) {
124124 std::vector<platform> Platforms;
125125
126- auto UrPlatforms = Adapter-> getUrPlatforms ();
126+ auto UrPlatforms = Adapter. getUrPlatforms ();
127127
128128 if (UrPlatforms.empty ()) {
129129 return Platforms;
130130 }
131131
132132 for (const auto &UrPlatform : UrPlatforms) {
133133 platform Platform = detail::createSyclObjFromImpl<platform>(
134- getOrMakePlatformImpl (UrPlatform, * Adapter));
134+ getOrMakePlatformImpl (UrPlatform, Adapter));
135135 const bool IsBanned = IsBannedPlatform (Platform);
136136 bool HasAnyDevices = false ;
137137
@@ -168,12 +168,12 @@ std::vector<platform> platform_impl::get_platforms() {
168168
169169 // See which platform we want to be served by which adapter.
170170 // There should be just one adapter serving each backend.
171- std::vector<AdapterPtr > &Adapters = ur::initializeUr ();
172- std::vector<std::pair<platform, AdapterPtr >> PlatformsWithAdapter;
171+ std::vector<adapter_impl * > &Adapters = ur::initializeUr ();
172+ std::vector<std::pair<platform, adapter_impl * >> PlatformsWithAdapter;
173173
174174 // Then check backend-specific adapters
175175 for (auto &Adapter : Adapters) {
176- const auto &AdapterPlatforms = getAdapterPlatforms (Adapter);
176+ const auto &AdapterPlatforms = getAdapterPlatforms (* Adapter);
177177 for (const auto &P : AdapterPlatforms) {
178178 PlatformsWithAdapter.push_back ({P, Adapter});
179179 }
@@ -504,13 +504,13 @@ platform_impl::get_devices(info::device_type DeviceType) const {
504504 // analysis. Doing adjustment by simple copy of last device num from
505505 // previous platform.
506506 // Needs non const adapter reference.
507- std::vector<AdapterPtr > &Adapters = ur::initializeUr ();
507+ std::vector<adapter_impl * > &Adapters = ur::initializeUr ();
508508 auto It = std::find_if (Adapters.begin (), Adapters.end (),
509- [&Platform = MPlatform](AdapterPtr &Adapter) {
509+ [&Platform = MPlatform](adapter_impl * &Adapter) {
510510 return Adapter->containsUrPlatform (Platform);
511511 });
512512 if (It != Adapters.end ()) {
513- AdapterPtr &Adapter = *It;
513+ adapter_impl * &Adapter = *It;
514514 std::lock_guard<std::mutex> Guard (*Adapter->getAdapterMutex ());
515515 Adapter->adjustLastDeviceId (MPlatform);
516516 }
@@ -530,7 +530,7 @@ platform_impl::get_devices(info::device_type DeviceType) const {
530530
531531 // Filter out devices that are not present in the SYCL_DEVICE_ALLOWLIST
532532 if (SYCLConfig<SYCL_DEVICE_ALLOWLIST>::get ())
533- applyAllowList (UrDevices, MPlatform, MAdapter);
533+ applyAllowList (UrDevices, MPlatform, * MAdapter);
534534
535535 // The first step is to filter out devices that are not compatible with
536536 // ONEAPI_DEVICE_SELECTOR. This is also the mechanism by which top level
0 commit comments