Skip to content

Commit 8845263

Browse files
authored
[SYCL] Change runtime check to assert in program_manager.cpp (#1413)
Pending change from spec constants code review. Signed-off-by: Konstantin S Bobrovsky <[email protected]>
1 parent 75d315c commit 8845263

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

sycl/source/detail/program_manager/program_manager.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -628,9 +628,7 @@ void ProgramManager::populateSpecConstRegistry() {
628628
}
629629
for (const auto &Entry : m_DeviceImages) {
630630
const std::vector<RTDeviceBinaryImageUPtr> &Imgs = *Entry.second.get();
631-
632-
if (Imgs.size() == 0)
633-
continue;
631+
assert((Imgs.size() > 0) && "no device binary image for a kernel set");
634632
OSModuleHandle H = Imgs[0]->getOSModuleHandle();
635633
SpecConstMapTy &GlobalIDMap = SpecConstRegistry[H];
636634

0 commit comments

Comments
 (0)