File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
sycl/include/sycl/ext/oneapi/backend Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ inline std::optional<sycl::device> find_matching_descendent_device(
79
79
auto sub_devices = d.create_sub_devices <
80
80
info::partition_property::partition_by_affinity_domain>(
81
81
info::partition_affinity_domain::next_partitionable);
82
- for (auto sub_dev : sub_devices) {
82
+ for (auto & sub_dev : sub_devices) {
83
83
if (auto maybe_device =
84
84
find_matching_descendent_device (sub_dev, BackendObject))
85
85
return maybe_device;
@@ -111,11 +111,11 @@ template <>
111
111
inline device make_device<backend::ext_oneapi_level_zero>(
112
112
const backend_input_t <backend::ext_oneapi_level_zero, device>
113
113
&BackendObject) {
114
- for (auto p : platform::get_platforms ()) {
114
+ for (auto & p : platform::get_platforms ()) {
115
115
if (p.get_backend () != backend::ext_oneapi_level_zero)
116
116
continue ;
117
117
118
- for (auto d : p.get_devices ()) {
118
+ for (auto & d : p.get_devices ()) {
119
119
if (auto maybe_device = find_matching_descendent_device (d, BackendObject))
120
120
return *maybe_device;
121
121
}
You can’t perform that action at this time.
0 commit comments