llvm icon indicating copy to clipboard operation
llvm copied to clipboard

[SYCL] Make `sycl::device` use raw `device_impl *` for its `impl`

Open aelovikov-intel opened this issue 1 month ago • 0 comments

device_impls are owned by the parent platforms and are only destroyed when SYCL RT is unloaded. As such, there is no reason to pay the price of a std::shared_ptr, a raw non-owning pointers is enough.

Use a pointer and not a reference because sycl::device is assignable.

aelovikov-intel avatar Dec 03 '25 20:12 aelovikov-intel