Skip to content

Commit

Permalink
++
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeDvorskiy committed Dec 27, 2024
1 parent 69df9cf commit 19f0df8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@ struct __parallel_merge_submitter<_IdType, __internal::__optional_kernel_name<_N
const _IdType __steps = oneapi::dpl::__internal::__dpl_ceiling_div(__n, __chunk);

using __res_idx_t = std::pair<std::size_t, std::size_t>;
auto __p_res_storage = new __result_and_scratch_storage<_ExecutionPolicy, __res_idx_t>(__exec, 1, 0);
using __result_and_scratch_storage_t = __result_and_scratch_storage<_ExecutionPolicy, __res_idx_t>;
auto __p_res_storage = new __result_and_scratch_storage_t(__exec, 1, 0);

// Save the raw pointer into a shared_ptr to return it in __future and extend the lifetime of the storage.
std::shared_ptr<__result_and_scratch_storage_base> __p_result_base(__p_res_storage);
Expand Down

0 comments on commit 19f0df8

Please sign in to comment.