Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sycl/source/detail/device_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -895,8 +895,8 @@ bool device_impl::extOneapiCanCompile(
// Get the shared_ptr to this object from the platform that owns it.
std::shared_ptr<device_impl> Self = MPlatform->getOrMakeDeviceImpl(MDevice);
return sycl::ext::oneapi::experimental::detail::
is_source_kernel_bundle_supported(Language,
std::vector<DeviceImplPtr>{Self});
is_source_kernel_bundle_supported(
Language, std::vector<DeviceImplPtr>{std::move(Self)});

} catch (sycl::exception &) {
return false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ void loadOclocLibrary(const std::vector<uint32_t> &IPVersionVec) {
}
return true;
};
for (auto result : OclocPaths) {
for (const auto &result : OclocPaths) {
if (attemptLoad(result))
return; // exit on successful attempt
}
Expand Down
Loading