Skip to content

Commit 160c65c

Browse files
alexanderflebader
andauthored
Update sycl/source/detail/program_impl.cpp
Co-authored-by: Alexey Bader <[email protected]>
1 parent fb0f903 commit 160c65c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

sycl/source/detail/program_impl.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,8 +305,11 @@ kernel program_impl::get_kernel(string_class KernelName,
305305
vector_class<vector_class<char>> program_impl::get_binaries() const {
306306
throw_if_state_is(program_state::none);
307307
vector_class<vector_class<char>> Result;
308-
if (!is_host()) {
309-
const detail::plugin &Plugin = getPlugin();
308+
if (is_host())
309+
return {};
310+
311+
vector_class<vector_class<char>> Result;
312+
const detail::plugin &Plugin = getPlugin();
310313
vector_class<size_t> BinarySizes(MDevices.size());
311314
Plugin.call<PiApiKind::piProgramGetInfo>(
312315
MProgram, PI_PROGRAM_INFO_BINARY_SIZES,

0 commit comments

Comments
 (0)