Skip to content

Commit 6174a93

Browse files
Merge pull request #1807 from IntelPython/dont-add-compute-event-into-host-task-list
2 parents e528f50 + 60969b4 commit 6174a93

File tree

3 files changed

+0
-12
lines changed

3 files changed

+0
-12
lines changed

dpctl/tensor/libtensor/source/boolean_advanced_indexing.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -370,8 +370,6 @@ py_extract(const dpctl::tensor::usm_ndarray &src,
370370
host_task_events.push_back(cleanup_tmp_allocations_ev);
371371
}
372372

373-
host_task_events.push_back(extract_ev);
374-
375373
sycl::event py_obj_management_host_task_ev = dpctl::utils::keep_args_alive(
376374
exec_q, {src, cumsum, dst}, host_task_events);
377375

@@ -691,8 +689,6 @@ py_place(const dpctl::tensor::usm_ndarray &dst,
691689
host_task_events.push_back(cleanup_tmp_allocations_ev);
692690
}
693691

694-
host_task_events.push_back(place_ev);
695-
696692
sycl::event py_obj_management_host_task_ev = dpctl::utils::keep_args_alive(
697693
exec_q, {dst, cumsum, rhs}, host_task_events);
698694

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

Lines changed: 0 additions & 2 deletions
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>;
@@ -802,7 +801,6 @@ py_dot(const dpctl::tensor::usm_ndarray &x1,
802801
});
803802
});
804803
host_task_events.push_back(cleanup_tmp_allocations_ev);
805-
host_task_events.push_back(dot_ev);
806804
}
807805
}
808806
return std::make_pair(

dpctl/tensor/libtensor/source/repeat.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -356,8 +356,6 @@ py_repeat_by_sequence(const dpctl::tensor::usm_ndarray &src,
356356
host_task_events.push_back(cleanup_tmp_allocations_ev);
357357
}
358358

359-
host_task_events.push_back(repeat_ev);
360-
361359
sycl::event py_obj_management_host_task_ev = dpctl::utils::keep_args_alive(
362360
exec_q, {src, reps, cumsum, dst}, host_task_events);
363361

@@ -504,7 +502,6 @@ py_repeat_by_sequence(const dpctl::tensor::usm_ndarray &src,
504502
});
505503
});
506504
host_task_events.push_back(cleanup_tmp_allocations_ev);
507-
host_task_events.push_back(repeat_ev);
508505

509506
sycl::event py_obj_management_host_task_ev = dpctl::utils::keep_args_alive(
510507
exec_q, {src, reps, cumsum, dst}, host_task_events);
@@ -734,8 +731,6 @@ py_repeat_by_scalar(const dpctl::tensor::usm_ndarray &src,
734731
host_task_events.push_back(cleanup_tmp_allocations_ev);
735732
}
736733

737-
host_task_events.push_back(repeat_ev);
738-
739734
sycl::event py_obj_management_host_task_ev =
740735
dpctl::utils::keep_args_alive(exec_q, {src, dst}, host_task_events);
741736

@@ -846,7 +841,6 @@ py_repeat_by_scalar(const dpctl::tensor::usm_ndarray &src,
846841
});
847842

848843
host_task_events.push_back(cleanup_tmp_allocations_ev);
849-
host_task_events.push_back(repeat_ev);
850844

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

0 commit comments

Comments
 (0)