Skip to content

Commit

Permalink
mend
Browse files Browse the repository at this point in the history
  • Loading branch information
mfrancepillois committed Dec 4, 2023
1 parent 6af3881 commit 68bc982
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions source/adapters/cuda/command_buffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,11 @@ static ur_result_t enqueueCommandBufferFillHelper(
size_t Size, uint32_t NumSyncPointsInWaitList,
const ur_exp_command_buffer_sync_point_t *SyncPointWaitList,
ur_exp_command_buffer_sync_point_t *SyncPoint) {
ur_result_t Result;
ur_result_t Result = UR_RESULT_SUCCESS;
std::vector<CUgraphNode> DepsList;
UR_CALL(getNodesFromSyncPoints(CommandBuffer, NumSyncPointsInWaitList,
SyncPointWaitList, DepsList));
SyncPointWaitList, DepsList),
Result);

try {
size_t N = Size / PatternSize;
Expand All @@ -129,7 +130,7 @@ static ur_result_t enqueueCommandBufferFillHelper(
NodeParams.value = Value;
NodeParams.width = 1;

Result = UR_CHECK_ERROR(cuGraphAddMemsetNode(
UR_CHECK_ERROR(cuGraphAddMemsetNode(
&GraphNode, CommandBuffer->CudaGraph, DepsList.data(),
DepsList.size(), &NodeParams, CommandBuffer->Device->getContext()));

Expand Down Expand Up @@ -167,7 +168,7 @@ static ur_result_t enqueueCommandBufferFillHelper(
NodeParamsStep.value = Value;
NodeParamsStep.width = 1;

Result = UR_CHECK_ERROR(cuGraphAddMemsetNode(
UR_CHECK_ERROR(cuGraphAddMemsetNode(
&GraphNode, CommandBuffer->CudaGraph, DepsList.data(),
DepsList.size(), &NodeParamsStep,
CommandBuffer->Device->getContext()));
Expand Down

0 comments on commit 68bc982

Please sign in to comment.