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 bd64197 commit 08d2815Copy full SHA for 08d2815
sycl/source/detail/program_manager/program_manager.cpp
@@ -1257,6 +1257,12 @@ void ProgramManager::addImages(pi_device_binaries DeviceBinary) {
1257
if (KSIdIt != KSIdMap.end()) {
1258
auto &Imgs = m_DeviceImages[KSIdIt->second];
1259
assert(Imgs && "Device image vector should have been already created");
1260
+ // If the images differ in target format, the dumping is necessary.
1261
+ if (DumpImages &&
1262
+ !std::all_of(Imgs->begin(), Imgs->end(), [&](auto &I) {
1263
+ return I->getFormat() == Img->getFormat();
1264
+ }))
1265
+ dumpImage(*Img, KSIdIt->second);
1266
1267
cacheKernelUsesAssertInfo(M, *Img);
1268
0 commit comments