Skip to content

Commit d523a45

Browse files
Apply comment
Signed-off-by: Sergey Semenov <[email protected]>
1 parent 195b265 commit d523a45

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

sycl/include/CL/sycl/detail/scheduler/scheduler.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ class Scheduler {
146146
Requirement *Req);
147147

148148
// Decrements leaf counters for all leaves of the record.
149-
void updateLeafCountersForRecord(MemObjRecord *Record);
149+
void decrementLeafCountersForRecord(MemObjRecord *Record);
150150

151151
// Removes commands that use given MemObjRecord from the graph.
152152
void cleanupCommandsForRecord(MemObjRecord *Record);

sycl/source/detail/scheduler/graph_builder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ Scheduler::GraphBuilder::addCG(std::unique_ptr<detail::CG> CommandGroup,
638638
return NewCmd.release();
639639
}
640640

641-
void Scheduler::GraphBuilder::updateLeafCountersForRecord(
641+
void Scheduler::GraphBuilder::decrementLeafCountersForRecord(
642642
MemObjRecord *Record) {
643643
for (Command *Cmd : Record->MReadLeaves) {
644644
--(Cmd->MLeafCounter);

sycl/source/detail/scheduler/scheduler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ void Scheduler::removeMemoryObject(detail::SYCLMemObjI *MemObj) {
130130
// No operations were performed on the mem object
131131
return;
132132
waitForRecordToFinish(Record);
133-
MGraphBuilder.updateLeafCountersForRecord(Record);
133+
MGraphBuilder.decrementLeafCountersForRecord(Record);
134134
MGraphBuilder.cleanupCommandsForRecord(Record);
135135
MGraphBuilder.removeRecordForMemObj(MemObj);
136136
}

0 commit comments

Comments
 (0)