Skip to content
Merged
Changes from all commits
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
2 changes: 1 addition & 1 deletion sycl/source/detail/program_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ program_impl::program_impl(ContextImplPtr Context,
});
SyclContextDevices.erase(NewEnd, SyclContextDevices.end());
MDevices = SyclContextDevices;
RT::PiDevice Device = getSyclObjImpl(MDevices[0])->getHandleRef();
assert(!MDevices.empty() && "No device found for this program");
RT::PiDevice Device = getSyclObjImpl(MDevices[0])->getHandleRef();
// TODO check build for each device instead
cl_program_binary_type BinaryType;
Plugin.call<PiApiKind::piProgramGetBuildInfo>(
Expand Down