File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change 1717
1818#include < cassert>
1919#include < cuda.h>
20- #include < memory>
2120
2221ur_event_handle_t_::ur_event_handle_t_ (ur_command_t Type,
2322 ur_context_handle_t Context,
@@ -292,17 +291,8 @@ UR_APIEXPORT ur_result_t UR_APICALL urEventCreateWithNativeHandle(
292291
293292 std::unique_ptr<ur_event_handle_t_> EventPtr{nullptr };
294293
295- try {
296- EventPtr =
297- std::unique_ptr<ur_event_handle_t_>(ur_event_handle_t_::makeWithNative (
298- hContext, reinterpret_cast <CUevent>(hNativeEvent)));
299- } catch (const std::bad_alloc &) {
300- return UR_RESULT_ERROR_OUT_OF_HOST_MEMORY;
301- } catch (...) {
302- return UR_RESULT_ERROR_UNKNOWN;
303- }
304-
305- *phEvent = EventPtr.release ();
294+ *phEvent = ur_event_handle_t_::makeWithNative (
295+ hContext, reinterpret_cast <CUevent>(hNativeEvent));
306296
307297 return UR_RESULT_SUCCESS;
308298}
You can’t perform that action at this time.
0 commit comments