Skip to content

Commit f6d8258

Browse files
[SYCL][Graph] Fixes bug introduced by cherry pick merge
1 parent e367d35 commit f6d8258

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

sycl/plugins/unified_runtime/ur/adapters/cuda/command_buffer.cpp

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -106,30 +106,6 @@ static void setCopyParams(const void *SrcPtr, const CUmemorytype_enum SrcType,
106106
Params.Depth = 1;
107107
}
108108

109-
ur_exp_command_buffer_handle_t_::ur_exp_command_buffer_handle_t_(
110-
ur_context_handle_t hContext, ur_device_handle_t hDevice)
111-
: Context(hContext),
112-
Device(hDevice), cudaGraph{nullptr}, cudaGraphExec{nullptr}, RefCount{1} {
113-
urContextRetain(hContext);
114-
urDeviceRetain(hDevice);
115-
}
116-
117-
// The ur_exp_command_buffer_handle_t_ destructor release all the memory objects
118-
// allocated for command_buffer managment
119-
ur_exp_command_buffer_handle_t_::~ur_exp_command_buffer_handle_t_() {
120-
// Release the memory allocated to the Context stored in the command_buffer
121-
urContextRelease(Context);
122-
123-
// Release the device
124-
urDeviceRelease(Device);
125-
126-
// Release the memory allocated to the CudaGraph
127-
cuGraphDestroy(cudaGraph);
128-
129-
// Release the memory allocated to the CudaGraphExec
130-
cuGraphExecDestroy(cudaGraphExec);
131-
}
132-
133109
UR_APIEXPORT ur_result_t UR_APICALL urCommandBufferCreateExp(
134110
ur_context_handle_t hContext, ur_device_handle_t hDevice,
135111
const ur_exp_command_buffer_desc_t *hCommandBufferDesc,

0 commit comments

Comments
 (0)