Skip to content

Commit

Permalink
Using 4/5 of available SLM
Browse files Browse the repository at this point in the history
Signed-off-by: Sergey Kopienko <[email protected]>
  • Loading branch information
SergeyKopienko committed Nov 19, 2024
1 parent 1812dbb commit 3fdd673
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ struct __parallel_merge_submitter_large<_IdType, _CustomName,

// Pessimistically only use 2/3 of the memory to take into account memory used by compiled kernel
const auto __slm_adjusted_work_group_size = oneapi::dpl::__internal::__slm_adjusted_work_group_size(__exec, sizeof(_RangeValueType));
const auto __slm_adjusted_work_group_size_x_part = __slm_adjusted_work_group_size * 2 / 3;
const auto __slm_adjusted_work_group_size_x_part = __slm_adjusted_work_group_size * 4 / 5;
const std::size_t __max_slm_size_adj = __slm_adjusted_work_group_size_x_part;

// The amount of data must be a multiple of the chunk size.
Expand Down

0 comments on commit 3fdd673

Please sign in to comment.