@@ -538,8 +538,8 @@ Scheduler::GraphBuilder::addHostAccessor(Requirement *Req,
538
538
539
539
// Need empty command to be blocked until host accessor is destructed
540
540
EmptyCommand *EmptyCmd =
541
- addEmptyCmd<Requirement> (UpdateHostAccCmd, {Req}, HostQueue,
542
- Command::BlockReason::HostAccessor, ToEnqueue);
541
+ addEmptyCmd (UpdateHostAccCmd, {Req}, HostQueue,
542
+ Command::BlockReason::HostAccessor, ToEnqueue);
543
543
544
544
Req->MBlockedCmd = EmptyCmd;
545
545
@@ -851,15 +851,10 @@ void Scheduler::GraphBuilder::markModifiedIfWrite(MemObjRecord *Record,
851
851
}
852
852
}
853
853
854
- template <typename T>
855
- typename detail::enable_if_t <
856
- std::is_same<typename std::remove_cv_t <T>, Requirement>::value,
857
- EmptyCommand *>
858
- Scheduler::GraphBuilder::addEmptyCmd (Command *Cmd, const std::vector<T *> &Reqs,
859
- const QueueImplPtr &Queue,
860
- Command::BlockReason Reason,
861
- std::vector<Command *> &ToEnqueue,
862
- const bool AddDepsToLeaves) {
854
+ EmptyCommand *Scheduler::GraphBuilder::addEmptyCmd (
855
+ Command *Cmd, const std::vector<Requirement *> &Reqs,
856
+ const QueueImplPtr &Queue, Command::BlockReason Reason,
857
+ std::vector<Command *> &ToEnqueue, const bool AddDepsToLeaves) {
863
858
EmptyCommand *EmptyCmd =
864
859
new EmptyCommand (Scheduler::getInstance ().getDefaultHostQueue ());
865
860
@@ -870,7 +865,7 @@ Scheduler::GraphBuilder::addEmptyCmd(Command *Cmd, const std::vector<T *> &Reqs,
870
865
EmptyCmd->MEnqueueStatus = EnqueueResultT::SyclEnqueueBlocked;
871
866
EmptyCmd->MBlockReason = Reason;
872
867
873
- for (T *Req : Reqs) {
868
+ for (Requirement *Req : Reqs) {
874
869
MemObjRecord *Record = getOrInsertMemObjRecord (Queue, Req, ToEnqueue);
875
870
AllocaCommandBase *AllocaCmd =
876
871
getOrCreateAllocaForReq (Record, Req, Queue, ToEnqueue);
0 commit comments