Skip to content

Commit 60969b4

Browse files
authored
Merge pull request #1811 from IntelPython/fix-additional-compute-events-in-host-task-lists
Fix additional compute events added to lists of host tasks
2 parents d34de92 + 20cdd5d commit 60969b4

File tree

3 files changed

+0
-7
lines changed

3 files changed

+0
-7
lines changed

dpctl/tensor/libtensor/source/boolean_advanced_indexing.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -689,8 +689,6 @@ py_place(const dpctl::tensor::usm_ndarray &dst,
689689
host_task_events.push_back(cleanup_tmp_allocations_ev);
690690
}
691691

692-
host_task_events.push_back(place_ev);
693-
694692
sycl::event py_obj_management_host_task_ev = dpctl::utils::keep_args_alive(
695693
exec_q, {dst, cumsum, rhs}, host_task_events);
696694

dpctl/tensor/libtensor/source/linalg_functions/dot.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,6 @@ py_dot(const dpctl::tensor::usm_ndarray &x1,
593593
});
594594
});
595595
host_task_events.push_back(cleanup_tmp_allocations_ev);
596-
host_task_events.push_back(dot_ev);
597596
}
598597
else { // if (call_batched)
599598
using shT = std::vector<py::ssize_t>;

dpctl/tensor/libtensor/source/repeat.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,6 @@ py_repeat_by_sequence(const dpctl::tensor::usm_ndarray &src,
502502
});
503503
});
504504
host_task_events.push_back(cleanup_tmp_allocations_ev);
505-
host_task_events.push_back(repeat_ev);
506505

507506
sycl::event py_obj_management_host_task_ev = dpctl::utils::keep_args_alive(
508507
exec_q, {src, reps, cumsum, dst}, host_task_events);
@@ -732,8 +731,6 @@ py_repeat_by_scalar(const dpctl::tensor::usm_ndarray &src,
732731
host_task_events.push_back(cleanup_tmp_allocations_ev);
733732
}
734733

735-
host_task_events.push_back(repeat_ev);
736-
737734
sycl::event py_obj_management_host_task_ev =
738735
dpctl::utils::keep_args_alive(exec_q, {src, dst}, host_task_events);
739736

@@ -844,7 +841,6 @@ py_repeat_by_scalar(const dpctl::tensor::usm_ndarray &src,
844841
});
845842

846843
host_task_events.push_back(cleanup_tmp_allocations_ev);
847-
host_task_events.push_back(repeat_ev);
848844

849845
sycl::event py_obj_management_host_task_ev =
850846
dpctl::utils::keep_args_alive(exec_q, {src, dst}, host_task_events);

0 commit comments

Comments
 (0)