@@ -180,17 +180,15 @@ _populate_kernel_params(sycl::queue exec_q,
180
180
host_along_sh_st_shp->data (), device_along_sh_st,
181
181
host_along_sh_st_shp->size ());
182
182
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);
194
192
195
193
std::vector<sycl::event> sh_st_pack_deps{
196
194
device_ind_ptrs_copy_ev, device_ind_sh_st_copy_ev,
0 commit comments