From 3a1c3cb53566f904a73361d5c57b939d981564b5 Mon Sep 17 00:00:00 2001 From: Chris Perkins Date: Wed, 9 Oct 2024 10:44:22 -0700 Subject: [PATCH] [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. --- sycl/include/sycl/ext/oneapi/backend/level_zero.hpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/sycl/include/sycl/ext/oneapi/backend/level_zero.hpp b/sycl/include/sycl/ext/oneapi/backend/level_zero.hpp index d9e369feac5f7..7ff2845f6bde4 100644 --- a/sycl/include/sycl/ext/oneapi/backend/level_zero.hpp +++ b/sycl/include/sycl/ext/oneapi/backend/level_zero.hpp @@ -83,8 +83,6 @@ inline std::optional find_matching_descendent_device( return maybe_device; } } - - assert(false && "Unexpected partitioning scheme for a Level-Zero device!"); } return {};