File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -550,7 +550,7 @@ class kernel_bundle_impl {
550
550
// Device globals are usually statically allocated and registered in the
551
551
// integration footer, which we don't have in the RTC context. Instead, we
552
552
// dynamically allocate storage tied to the executable kernel bundle.
553
- for (auto *DeviceGlobalEntry :
553
+ for (DeviceGlobalMapEntry *DeviceGlobalEntry :
554
554
PM.getDeviceGlobalEntries (DeviceGlobalIDVec)) {
555
555
556
556
size_t AllocSize = DeviceGlobalEntry->MDeviceGlobalTSize ; // init value
@@ -703,15 +703,8 @@ class kernel_bundle_impl {
703
703
704
704
// Otherwise, if the device candidate is a sub-device it is also valid if
705
705
// its parent is valid.
706
- if (!getSyclObjImpl (DeviceCand)->isRootDevice ()) {
707
- try {
708
- return is_valid_device (
709
- DeviceCand.get_info <info::device::parent_device>());
710
- } catch (std::exception &e) {
711
- __SYCL_REPORT_EXCEPTION_TO_STREAM (" exception in is_valid_device" , e);
712
- }
713
- }
714
- return false ;
706
+ return !getSyclObjImpl (DeviceCand)->isRootDevice () &&
707
+ is_valid_device (DeviceCand.get_info <info::device::parent_device>());
715
708
}
716
709
717
710
DeviceGlobalMapEntry *get_device_global_entry (const std::string &Name,
You can’t perform that action at this time.
0 commit comments