Skip to content

Commit 67b9061

Browse files
mfrancepilloisEwanC
authored andcommitted
fixes cuda support merge issues
1 parent a9a325d commit 67b9061

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

source/adapters/cuda/command_buffer.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,11 @@ static ur_result_t enqueueCommandBufferFillHelper(
106106
size_t Size, uint32_t NumSyncPointsInWaitList,
107107
const ur_exp_command_buffer_sync_point_t *SyncPointWaitList,
108108
ur_exp_command_buffer_sync_point_t *SyncPoint) {
109-
ur_result_t Result;
109+
ur_result_t Result = UR_RESULT_SUCCESS;
110110
std::vector<CUgraphNode> DepsList;
111111
UR_CALL(getNodesFromSyncPoints(CommandBuffer, NumSyncPointsInWaitList,
112-
SyncPointWaitList, DepsList));
112+
SyncPointWaitList, DepsList),
113+
Result);
113114

114115
try {
115116
size_t N = Size / PatternSize;
@@ -129,7 +130,7 @@ static ur_result_t enqueueCommandBufferFillHelper(
129130
NodeParams.value = Value;
130131
NodeParams.width = 1;
131132

132-
Result = UR_CHECK_ERROR(cuGraphAddMemsetNode(
133+
UR_CHECK_ERROR(cuGraphAddMemsetNode(
133134
&GraphNode, CommandBuffer->CudaGraph, DepsList.data(),
134135
DepsList.size(), &NodeParams, CommandBuffer->Device->getContext()));
135136

@@ -167,7 +168,7 @@ static ur_result_t enqueueCommandBufferFillHelper(
167168
NodeParamsStep.value = Value;
168169
NodeParamsStep.width = 1;
169170

170-
Result = UR_CHECK_ERROR(cuGraphAddMemsetNode(
171+
UR_CHECK_ERROR(cuGraphAddMemsetNode(
171172
&GraphNode, CommandBuffer->CudaGraph, DepsList.data(),
172173
DepsList.size(), &NodeParamsStep,
173174
CommandBuffer->Device->getContext()));

0 commit comments

Comments
 (0)