We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 147cb3d commit 7fc5202Copy full SHA for 7fc5202
sycl/source/detail/device_image_impl.hpp
@@ -1113,6 +1113,10 @@ class device_image_impl {
1113
[&NewImageRef](const sycl::device &SDev) {
1114
return !doesDevSupportDeviceRequirements(SDev, NewImageRef);
1115
});
1116
+
1117
+ // If there are no devices that support the image, we skip it.
1118
+ if (NewSupportingDevsEnd == SupportingDevs.begin())
1119
+ continue;
1120
SupportingDevs.erase(NewSupportingDevsEnd, SupportingDevs.end());
1121
1122
// Mark the image as input so the program manager will bring it into
0 commit comments