diff --git a/sycl/source/device.cpp b/sycl/source/device.cpp index 45240cc99dc84..b170720aa8fcb 100644 --- a/sycl/source/device.cpp +++ b/sycl/source/device.cpp @@ -128,7 +128,8 @@ device::get_info() const { } // Explicit override. Not fulfilled by #include device_traits.def below. -template <> device device::get_info() const { +template <> +__SYCL_EXPORT device device::get_info() const { // With ONEAPI_DEVICE_SELECTOR the impl.MRootDevice is preset and may be // overridden (ie it may be nullptr on a sub-device) The PI of the sub-devices // have parents, but we don't want to return them. They must pretend to be