Skip to content

Commit fad61b9

Browse files
[NFC][SYCL] Remove dead code (#19522)
1 parent e7edd49 commit fad61b9

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

sycl/source/detail/program_manager/program_manager.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ createBinaryProgram(context_impl &Context, devices_range Devices,
7979
adapter_impl &Adapter = Context.getAdapter();
8080
ur_program_handle_t Program;
8181
auto DeviceHandles = Devices.to<std::vector<ur_device_handle_t>>();
82-
ur_result_t BinaryStatus = UR_RESULT_SUCCESS;
8382
ur_program_properties_t Properties = {};
8483
Properties.stype = UR_STRUCTURE_TYPE_PROGRAM_PROPERTIES;
8584
Properties.pNext = nullptr;
@@ -89,12 +88,6 @@ createBinaryProgram(context_impl &Context, devices_range Devices,
8988
Adapter.call<UrApiKind::urProgramCreateWithBinary>(
9089
Context.getHandleRef(), DeviceHandles.size(), DeviceHandles.data(),
9190
Lengths, Binaries, &Properties, &Program);
92-
if (BinaryStatus != UR_RESULT_SUCCESS) {
93-
throw detail::set_ur_error(
94-
exception(make_error_code(errc::runtime),
95-
"Creating program with binary failed."),
96-
BinaryStatus);
97-
}
9891

9992
return Program;
10093
}

0 commit comments

Comments
 (0)