Skip to content

Commit 3a1c3cb

Browse files
[SYCL] Removal of interfering assert (#15612)
`find_matching_descendent_device` return type is `std::optional`, meaning it does not need to return a match if none is found. The calling code anticipates this. But the assert here precludes that path. Removing. This is causing a bug on one of our big systems so we need the fix. But I'm not sure if a test needs to be added nor how to write such, as we don't see this problem on the lab or CI systems.
1 parent 5e4fc70 commit 3a1c3cb

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

sycl/include/sycl/ext/oneapi/backend/level_zero.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,6 @@ inline std::optional<sycl::device> find_matching_descendent_device(
8383
return maybe_device;
8484
}
8585
}
86-
87-
assert(false && "Unexpected partitioning scheme for a Level-Zero device!");
8886
}
8987

9088
return {};

0 commit comments

Comments
 (0)