Skip to content

Commit a19c3ee

Browse files
Remove Unrecoverable
Signed-off-by: Bartosz Dunajski <[email protected]>
1 parent 53104e0 commit a19c3ee

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

opencl/test/unit_test/device/sub_device_tests.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,6 @@ TEST(SubDevicesTest, givenSubDevicesWhenGettingDeviceByIdZeroThenGetThisSubDevic
223223
auto subDevice = device->subdevices.at(0);
224224

225225
EXPECT_EQ(subDevice, subDevice->getDeviceById(0));
226-
EXPECT_THROW(subDevice->getDeviceById(1), std::exception);
227226
}
228227

229228
TEST(RootDevicesTest, givenRootDeviceWithoutSubdevicesWhenCreateEnginesThenDeviceCreatesCorrectNumberOfEngines) {

shared/source/device/device.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,6 @@ uint32_t Device::getNumAvailableDevices() const {
336336

337337
Device *Device::getDeviceById(uint32_t deviceId) const {
338338
if (subdevices.empty()) {
339-
UNRECOVERABLE_IF(deviceId > 0);
340339
return const_cast<Device *>(this);
341340
}
342341
UNRECOVERABLE_IF(deviceId >= subdevices.size());

0 commit comments

Comments
 (0)