Skip to content

Commit 6b73a71

Browse files
committed
fix
1 parent 4a78b02 commit 6b73a71

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sycl/source/detail/device_impl.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
#include <detail/device_impl.hpp>
1010
#include <detail/device_info.hpp>
11+
#include "detail/kernel_bundle_impl.hpp"
1112
#include <detail/platform_impl.hpp>
1213
#include <detail/ur_info_code.hpp>
1314
#include <sycl/detail/ur.hpp>
@@ -924,7 +925,8 @@ bool device_impl::extOneapiCanCompile(
924925
ext::oneapi::experimental::source_language Language) {
925926
try {
926927
// Get the shared_ptr to this object from the platform that owns it.
927-
std::shared_ptr<device_impl> Self = MPlatform->getOrMakeDeviceImpl(MDevice);
928+
const std::shared_ptr<device_impl> Self =
929+
MPlatform->getOrMakeDeviceImpl(MDevice, MPlatform);
928930
return sycl::ext::oneapi::experimental::detail::
929931
is_source_kernel_bundle_supported(Language,
930932
std::vector<DeviceImplPtr>{Self});

0 commit comments

Comments
 (0)