Skip to content

Commit a6ee4e6

Browse files
committed
Simplify kernel_bundle_impl::get_bundle_state
Signed-off-by: Steffen Larsen <[email protected]>
1 parent d3511e1 commit a6ee4e6

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

sycl/source/detail/kernel_bundle_impl.hpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -484,13 +484,7 @@ class kernel_bundle_impl {
484484
size_t size() const noexcept { return MDeviceImages.size(); }
485485

486486
bundle_state get_bundle_state() const {
487-
// Interop kernel-bundles are always in executable state
488-
if (MIsInterop)
489-
return bundle_state::executable;
490-
// All device images are expected to have the same state
491-
return MDeviceImages.empty()
492-
? MState
493-
: detail::getSyclObjImpl(MDeviceImages[0])->get_state();
487+
return MState;
494488
}
495489

496490
const SpecConstMapT &get_spec_const_map_ref() const noexcept {

0 commit comments

Comments
 (0)