@@ -467,7 +467,7 @@ class device_impl : public std::enable_shared_from_this<device_impl> {
467467 platform get_platform () const ;
468468
469469 // / \return the associated adapter with this device.
470- adapter_impl &getAdapter () const { return MPlatform-> getAdapter (); }
470+ adapter_impl &getAdapter () const { return MPlatform. getAdapter (); }
471471
472472 // / Check SYCL extension support by device
473473 // /
@@ -832,7 +832,7 @@ class device_impl : public std::enable_shared_from_this<device_impl> {
832832 // We claim, that all Intel FPGA devices support kernel to kernel pipe
833833 // feature (at least at the scope of SYCL_INTEL_data_flow_pipes
834834 // extension).
835- std::string platform_name = MPlatform-> get_info <info::platform::name>();
835+ std::string platform_name = MPlatform. get_info <info::platform::name>();
836836 if (platform_name == " Intel(R) FPGA Emulation Platform for OpenCL(TM)" ||
837837 platform_name == " Intel(R) FPGA SDK for OpenCL(TM)" )
838838 return true ;
@@ -1017,7 +1017,7 @@ class device_impl : public std::enable_shared_from_this<device_impl> {
10171017 Result.reserve (Devs.value ().size ());
10181018 for (const auto &d : Devs.value ())
10191019 Result.push_back (
1020- createSyclObjFromImpl<device>(MPlatform-> getOrMakeDeviceImpl (d)));
1020+ createSyclObjFromImpl<device>(MPlatform. getOrMakeDeviceImpl (d)));
10211021
10221022 return Result;
10231023 }
@@ -1031,7 +1031,7 @@ class device_impl : public std::enable_shared_from_this<device_impl> {
10311031 if (ur_device_handle_t Result =
10321032 get_info_impl<UR_DEVICE_INFO_COMPOSITE_DEVICE>())
10331033 return createSyclObjFromImpl<device>(
1034- MPlatform-> getOrMakeDeviceImpl (Result));
1034+ MPlatform. getOrMakeDeviceImpl (Result));
10351035
10361036 throw sycl::exception (make_error_code (errc::invalid),
10371037 " A component with aspect::ext_oneapi_is_component "
@@ -1702,10 +1702,10 @@ class device_impl : public std::enable_shared_from_this<device_impl> {
17021702 uint64_t getCurrentDeviceTime ();
17031703
17041704 // / Get the backend of this device
1705- backend getBackend () const { return MPlatform-> getBackend (); }
1705+ backend getBackend () const { return MPlatform. getBackend (); }
17061706
17071707 // / @brief Get the platform impl serving this device
1708- platform_impl &getPlatformImpl () const { return * MPlatform; }
1708+ platform_impl &getPlatformImpl () const { return MPlatform; }
17091709
17101710 template <ur_device_info_t Desc>
17111711 std::vector<info::fp_config> get_fp_config () const {
@@ -2254,7 +2254,7 @@ class device_impl : public std::enable_shared_from_this<device_impl> {
22542254private:
22552255 ur_device_handle_t MDevice = 0 ;
22562256 // This is used for getAdapter so should be above other properties.
2257- std::shared_ptr< platform_impl> MPlatform;
2257+ platform_impl & MPlatform;
22582258
22592259 std::shared_mutex MDeviceHostBaseTimeMutex;
22602260 std::pair<uint64_t , uint64_t > MDeviceHostBaseTime{0 , 0 };
0 commit comments