Skip to content

Commit 8a7fb3c

Browse files
none_of(get_devices, ...)
1 parent b92cc90 commit 8a7fb3c

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

sycl/source/detail/kernel_bundle_impl.hpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,11 @@ class kernel_bundle_impl
161161
for (const DevImgPlainWithDeps &DevImgWithDeps :
162162
InputBundleImpl.MDeviceImages) {
163163
// Skip images which are not compatible with devices provided
164-
if (std::none_of(get_devices().begin(), get_devices().end(),
165-
[&MainImg = *getSyclObjImpl(DevImgWithDeps.getMain())](
166-
device_impl &Dev) {
167-
return MainImg.compatible_with_device(Dev);
168-
}))
164+
if (none_of(get_devices(),
165+
[&MainImg = *getSyclObjImpl(DevImgWithDeps.getMain())](
166+
device_impl &Dev) {
167+
return MainImg.compatible_with_device(Dev);
168+
}))
169169
continue;
170170

171171
switch (TargetState) {
@@ -395,11 +395,11 @@ class kernel_bundle_impl
395395
for (const DevImgPlainWithDeps *DeviceImageWithDeps :
396396
ImagesWithSpecConsts) {
397397
// Skip images which are not compatible with devices provided
398-
if (std::none_of(get_devices().begin(), get_devices().end(),
399-
[&MainImg = *getSyclObjImpl(
400-
DeviceImageWithDeps->getMain())](device_impl &Dev) {
401-
return MainImg.compatible_with_device(Dev);
402-
}))
398+
if (none_of(get_devices(),
399+
[&MainImg = *getSyclObjImpl(DeviceImageWithDeps->getMain())](
400+
device_impl &Dev) {
401+
return MainImg.compatible_with_device(Dev);
402+
}))
403403
continue;
404404

405405
std::vector<device_image_plain> LinkedResults =

0 commit comments

Comments
 (0)