File tree Expand file tree Collapse file tree 2 files changed +5
-12
lines changed Expand file tree Collapse file tree 2 files changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -747,8 +747,8 @@ bool device_impl::has(aspect Aspect) const {
747
747
return call_successful && support;
748
748
}
749
749
}
750
- throw runtime_error ( " This device aspect has not been implemented yet. " ,
751
- PI_ERROR_INVALID_DEVICE);
750
+
751
+ return false ; // This device aspect has not been implemented yet.
752
752
}
753
753
754
754
std::shared_ptr<device_impl> device_impl::getHostDeviceImpl () {
Original file line number Diff line number Diff line change @@ -156,16 +156,9 @@ device::get_info_impl<info::device::aspects>() const {
156
156
#undef __SYCL_ASPECT
157
157
};
158
158
159
- auto UnsupportedAspects = std::remove_if (
160
- DeviceAspects.begin (), DeviceAspects.end (), [&](aspect Aspect) {
161
- try {
162
- return !impl->has (Aspect);
163
- } catch (const runtime_error &ex) {
164
- if (ex.get_cl_code () == PI_ERROR_INVALID_DEVICE)
165
- return true ;
166
- throw ;
167
- }
168
- });
159
+ auto UnsupportedAspects =
160
+ std::remove_if (DeviceAspects.begin (), DeviceAspects.end (),
161
+ [&](aspect Aspect) { return !impl->has (Aspect); });
169
162
170
163
DeviceAspects.erase (UnsupportedAspects, DeviceAspects.end ());
171
164
You can’t perform that action at this time.
0 commit comments