Skip to content

Commit

Permalink
[SYCL] Removal of interfering assert (#15612)
Browse files Browse the repository at this point in the history
`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.
  • Loading branch information
cperkinsintel authored Oct 9, 2024
1 parent 5e4fc70 commit 3a1c3cb
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions sycl/include/sycl/ext/oneapi/backend/level_zero.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,6 @@ inline std::optional<sycl::device> find_matching_descendent_device(
return maybe_device;
}
}

assert(false && "Unexpected partitioning scheme for a Level-Zero device!");
}

return {};
Expand Down

0 comments on commit 3a1c3cb

Please sign in to comment.