Skip to content

Commit f1ebef0

Browse files
authored
[SYCL][NFC] Fix debug printing of device binary (#20264)
error: use of deleted function ‘sycl::_V1::detail::Managed<URResource>::Managed(const sycl::_V1::detail::Managed<URResource>&) [with URResource = ur_program_handle_t_*]’ 167 | for (auto Elem : Vec) | ^~~
1 parent 9bd3fbc commit f1ebef0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/source/detail/program_manager/program_manager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ static bool isDeviceBinaryTypeSupported(context_impl &ContextImpl,
164164
[[maybe_unused]] auto VecToString = [](auto &Vec) -> std::string {
165165
std::ostringstream Out;
166166
Out << "{";
167-
for (auto Elem : Vec)
167+
for (const auto &Elem : Vec)
168168
Out << Elem << " ";
169169
Out << "}";
170170
return Out.str();

0 commit comments

Comments
 (0)