We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41d4f25 commit c2dc01dCopy full SHA for c2dc01d
sycl/source/detail/program_manager/program_manager.cpp
@@ -796,12 +796,12 @@ ur_program_handle_t ProgramManager::getBuiltURProgram(
796
// built for the root device
797
DeviceImplPtr RootDevImpl = DeviceImpl;
798
while (!RootDevImpl->isRootDevice()) {
799
- const auto &ParentDev = detail::getSyclObjImpl(
+ auto ParentDev = detail::getSyclObjImpl(
800
RootDevImpl->get_info<info::device::parent_device>());
801
// Sharing is allowed within a single context only
802
if (!ContextImpl->hasDevice(ParentDev))
803
break;
804
- RootDevImpl = ParentDev;
+ RootDevImpl = std::move(ParentDev);
805
}
806
807
ur_bool_t MustBuildOnSubdevice = true;
0 commit comments