Skip to content

Commit

Permalink
Merge pull request #1807 from IntelPython/dont-add-compute-event-into…
Browse files Browse the repository at this point in the history
…-host-task-list
  • Loading branch information
oleksandr-pavlyk authored Aug 24, 2024
2 parents e528f50 + 60969b4 commit 6174a93
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
4 changes: 0 additions & 4 deletions dpctl/tensor/libtensor/source/boolean_advanced_indexing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -370,8 +370,6 @@ py_extract(const dpctl::tensor::usm_ndarray &src,
host_task_events.push_back(cleanup_tmp_allocations_ev);
}

host_task_events.push_back(extract_ev);

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

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

host_task_events.push_back(place_ev);

sycl::event py_obj_management_host_task_ev = dpctl::utils::keep_args_alive(
exec_q, {dst, cumsum, rhs}, host_task_events);

Expand Down
2 changes: 0 additions & 2 deletions dpctl/tensor/libtensor/source/linalg_functions/dot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,6 @@ py_dot(const dpctl::tensor::usm_ndarray &x1,
});
});
host_task_events.push_back(cleanup_tmp_allocations_ev);
host_task_events.push_back(dot_ev);
}
else { // if (call_batched)
using shT = std::vector<py::ssize_t>;
Expand Down Expand Up @@ -802,7 +801,6 @@ py_dot(const dpctl::tensor::usm_ndarray &x1,
});
});
host_task_events.push_back(cleanup_tmp_allocations_ev);
host_task_events.push_back(dot_ev);
}
}
return std::make_pair(
Expand Down
6 changes: 0 additions & 6 deletions dpctl/tensor/libtensor/source/repeat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -356,8 +356,6 @@ py_repeat_by_sequence(const dpctl::tensor::usm_ndarray &src,
host_task_events.push_back(cleanup_tmp_allocations_ev);
}

host_task_events.push_back(repeat_ev);

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

Expand Down Expand Up @@ -504,7 +502,6 @@ py_repeat_by_sequence(const dpctl::tensor::usm_ndarray &src,
});
});
host_task_events.push_back(cleanup_tmp_allocations_ev);
host_task_events.push_back(repeat_ev);

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

host_task_events.push_back(repeat_ev);

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

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

host_task_events.push_back(cleanup_tmp_allocations_ev);
host_task_events.push_back(repeat_ev);

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

0 comments on commit 6174a93

Please sign in to comment.