Skip to content

Commit ac9bcd4

Browse files
committed
Name tweaks in integer indexing implementation
1 parent e178d0e commit ac9bcd4

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

dpctl/tensor/libtensor/source/integer_advanced_indexing.cpp

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -180,17 +180,15 @@ _populate_kernel_params(sycl::queue exec_q,
180180
host_along_sh_st_shp->data(), device_along_sh_st,
181181
host_along_sh_st_shp->size());
182182

183-
sycl::event shared_ptr_cleanup_host_task =
184-
exec_q.submit([&](sycl::handler &cgh) {
185-
cgh.depends_on({device_along_sh_st_copy_ev,
186-
device_orthog_sh_st_copy_ev,
187-
device_ind_offsets_copy_ev,
188-
device_ind_sh_st_copy_ev, device_ind_ptrs_copy_ev});
189-
cgh.host_task([host_ind_offsets_shp, host_ind_sh_st_shp,
190-
host_ind_ptrs_shp, host_orthog_sh_st_shp,
191-
host_along_sh_st_shp]() {});
192-
});
193-
host_task_events.push_back(shared_ptr_cleanup_host_task);
183+
sycl::event shared_ptr_cleanup_ev = exec_q.submit([&](sycl::handler &cgh) {
184+
cgh.depends_on({device_along_sh_st_copy_ev, device_orthog_sh_st_copy_ev,
185+
device_ind_offsets_copy_ev, device_ind_sh_st_copy_ev,
186+
device_ind_ptrs_copy_ev});
187+
cgh.host_task([host_ind_offsets_shp, host_ind_sh_st_shp,
188+
host_ind_ptrs_shp, host_orthog_sh_st_shp,
189+
host_along_sh_st_shp]() {});
190+
});
191+
host_task_events.push_back(shared_ptr_cleanup_ev);
194192

195193
std::vector<sycl::event> sh_st_pack_deps{
196194
device_ind_ptrs_copy_ev, device_ind_sh_st_copy_ev,

0 commit comments

Comments
 (0)