@@ -106,10 +106,11 @@ static ur_result_t enqueueCommandBufferFillHelper(
106
106
size_t Size, uint32_t NumSyncPointsInWaitList,
107
107
const ur_exp_command_buffer_sync_point_t *SyncPointWaitList,
108
108
ur_exp_command_buffer_sync_point_t *SyncPoint) {
109
- ur_result_t Result;
109
+ ur_result_t Result = UR_RESULT_SUCCESS ;
110
110
std::vector<CUgraphNode> DepsList;
111
111
UR_CALL (getNodesFromSyncPoints (CommandBuffer, NumSyncPointsInWaitList,
112
- SyncPointWaitList, DepsList));
112
+ SyncPointWaitList, DepsList),
113
+ Result);
113
114
114
115
try {
115
116
size_t N = Size / PatternSize;
@@ -129,7 +130,7 @@ static ur_result_t enqueueCommandBufferFillHelper(
129
130
NodeParams.value = Value;
130
131
NodeParams.width = 1 ;
131
132
132
- Result = UR_CHECK_ERROR (cuGraphAddMemsetNode (
133
+ UR_CHECK_ERROR (cuGraphAddMemsetNode (
133
134
&GraphNode, CommandBuffer->CudaGraph , DepsList.data (),
134
135
DepsList.size (), &NodeParams, CommandBuffer->Device ->getContext ()));
135
136
@@ -167,7 +168,7 @@ static ur_result_t enqueueCommandBufferFillHelper(
167
168
NodeParamsStep.value = Value;
168
169
NodeParamsStep.width = 1 ;
169
170
170
- Result = UR_CHECK_ERROR (cuGraphAddMemsetNode (
171
+ UR_CHECK_ERROR (cuGraphAddMemsetNode (
171
172
&GraphNode, CommandBuffer->CudaGraph , DepsList.data (),
172
173
DepsList.size (), &NodeParamsStep,
173
174
CommandBuffer->Device ->getContext ()));
0 commit comments