Skip to content

Commit

Permalink
include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl_merge.h - …
Browse files Browse the repository at this point in the history
…small refactoring of __parallel_merge_submitter_large::operator()

Signed-off-by: Sergey Kopienko <[email protected]>
  • Loading branch information
SergeyKopienko committed Dec 19, 2024
1 parent a3ea36d commit ed32a0f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -393,13 +393,13 @@ struct __parallel_merge_submitter_large<_IdType, _CustomName,
// Calculate nd-range params
const nd_range_params __nd_range_params = eval_nd_range_params(__exec, __rng1, __rng2);

__result_and_scratch_storage_base_ptr __p_result_and_scratch_storage_base;

// Create storage for save split-points on each base diagonal + 1 (for the right base diagonal in the last work-group)
auto __p_base_diagonals_sp_global_storage =
new __result_and_scratch_storage<_ExecutionPolicy, _split_point_t<_IdType>>(
__exec, 0, __nd_range_params.base_diag_count + 1);
__p_result_and_scratch_storage_base.reset(

// Save raw-pointer into shared_ptr for return it in __future to exted life-time of the storage
__result_and_scratch_storage_base_ptr __p_result_and_scratch_storage_base(
static_cast<__result_and_scratch_storage_base*>(__p_base_diagonals_sp_global_storage));

sycl::event __event = eval_split_points_for_groups(__exec, __rng1, __rng2, __comp, __nd_range_params,
Expand Down

0 comments on commit ed32a0f

Please sign in to comment.