File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
sycl/source/detail/scheduler Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 19
19
#include < CL/sycl/access/access.hpp>
20
20
#include < CL/sycl/detail/accessor_impl.hpp>
21
21
#include < CL/sycl/detail/cg.hpp>
22
+ #include < detail/event_impl.hpp>
22
23
#include < detail/program_manager/program_manager.hpp>
23
24
24
25
__SYCL_INLINE_NAMESPACE (cl) {
@@ -187,7 +188,7 @@ class Command {
187
188
return nullptr ;
188
189
}
189
190
190
- virtual ~Command () = default ;
191
+ virtual ~Command () { MEvent-> cleanupDependencyEvents (); }
191
192
192
193
const char *getBlockReason () const ;
193
194
Original file line number Diff line number Diff line change @@ -129,7 +129,6 @@ static void handleVisitedNodes(std::vector<Command *> &Visited) {
129
129
for (Command *Cmd : Visited) {
130
130
if (Cmd->MMarks .MToBeDeleted ) {
131
131
Cmd->getEvent ()->setCommand (nullptr );
132
- Cmd->getEvent ()->cleanupDependencyEvents ();
133
132
delete Cmd;
134
133
} else
135
134
Cmd->MMarks .MVisited = false ;
@@ -1187,7 +1186,6 @@ void Scheduler::GraphBuilder::cleanupCommand(Command *Cmd) {
1187
1186
}
1188
1187
1189
1188
Cmd->getEvent ()->setCommand (nullptr );
1190
- Cmd->getEvent ()->cleanupDependencyEvents ();
1191
1189
delete Cmd;
1192
1190
}
1193
1191
You can’t perform that action at this time.
0 commit comments