Skip to content

Commit 692bf79

Browse files
author
Sergey Kanaev
committed
[SYCL] Reword comments
Signed-off-by: Sergey Kanaev <[email protected]>
1 parent 64d6ba8 commit 692bf79

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sycl/source/detail/scheduler/graph_builder.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -909,6 +909,7 @@ void Scheduler::GraphBuilder::removeRecordForMemObj(SYCLMemObjI *MemObject) {
909909
// ConnectCmd depend on on this command. If there is valid, i.e. non-nil,
910910
// requirement in Dep we make ConnectCmd depend on DepEvent's command with this
911911
// requirement.
912+
// Optionality of Dep is set by Dep.MDepCommand equal to nullptr.
912913
void Scheduler::GraphBuilder::connectDepEvent(Command *const Cmd,
913914
EventImplPtr DepEvent,
914915
const DepDesc &Dep) {
@@ -990,6 +991,7 @@ void Scheduler::GraphBuilder::connectDepEvent(Command *const Cmd,
990991
// of enqueue process for some command Cmd. We're going to add a dependency
991992
// for it. Need some nice and cute solution to enqueue ConnectCmd via standard
992993
// scheduler/graph processor mechanisms.
994+
// Though, we need this call to enqueue to launch ConnectCmd.
993995
EnqueueResultT Res;
994996
bool Enqueued = Scheduler::GraphProcessor::enqueueCommand(ConnectCmd, Res);
995997
if (!Enqueued && EnqueueResultT::SyclEnqueueFailed == Res.MResult)

0 commit comments

Comments
 (0)