Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removed unused variables #1994

Merged
merged 4 commits into from
Jan 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl.h
Original file line number Diff line number Diff line change
Expand Up @@ -486,11 +486,8 @@ struct __parallel_transform_scan_static_single_group_submitter<_Inclusive, _Elem
__hdl.parallel_for<_ScanKernelName...>(
sycl::nd_range<1>(_WGSize, _WGSize), [=](sycl::nd_item<1> __self_item) {
const auto& __group = __self_item.get_group();
const auto& __subgroup = __self_item.get_sub_group();
// This kernel is only launched for sizes less than 2^16
const ::std::uint16_t __item_id = __self_item.get_local_linear_id();
const ::std::uint16_t __subgroup_id = __subgroup.get_group_id();
const ::std::uint16_t __subgroup_size = __subgroup.get_local_linear_range();

auto __lacc_ptr = __dpl_sycl::__get_accessor_ptr(__lacc);
for (std::uint16_t __idx = __item_id; __idx < __n; __idx += _WGSize)
Expand Down Expand Up @@ -559,11 +556,8 @@ struct __parallel_copy_if_static_single_group_submitter<_Size, _ElemsPerItem, _W
sycl::nd_range<1>(_WGSize, _WGSize), [=](sycl::nd_item<1> __self_item) {
auto __res_ptr = __result_and_scratch_storage_t::__get_usm_or_buffer_accessor_ptr(__res_acc);
const auto& __group = __self_item.get_group();
const auto& __subgroup = __self_item.get_sub_group();
// This kernel is only launched for sizes less than 2^16
const ::std::uint16_t __item_id = __self_item.get_local_linear_id();
const ::std::uint16_t __subgroup_id = __subgroup.get_group_id();
const ::std::uint16_t __subgroup_size = __subgroup.get_local_linear_range();
auto __lacc_ptr = __dpl_sycl::__get_accessor_ptr(__lacc);
for (std::uint16_t __idx = __item_id; __idx < __n; __idx += _WGSize)
{
Expand Down Expand Up @@ -2437,8 +2431,6 @@ __parallel_reduce_by_segment(oneapi::dpl::__internal::__device_backend_tag, _Exe

const auto __n = __keys.size();

using __diff_type = oneapi::dpl::__internal::__difference_t<_Range1>;
using __key_type = oneapi::dpl::__internal::__value_t<_Range1>;
using __val_type = oneapi::dpl::__internal::__value_t<_Range2>;
// Prior to icpx 2025.0, the reduce-then-scan path performs poorly and should be avoided.
#if !defined(__INTEL_LLVM_COMPILER) || __INTEL_LLVM_COMPILER >= 20250000
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,11 +227,6 @@ struct __parallel_merge_submitter_large<_IdType, _CustomName,
nd_range_params
eval_nd_range_params(_ExecutionPolicy&& __exec, const _Range1& __rng1, const _Range2& __rng2) const
{
using _Range1ValueType = oneapi::dpl::__internal::__value_t<_Range1>;
using _Range2ValueType = oneapi::dpl::__internal::__value_t<_Range2>;
using _RangeValueType = std::conditional_t<(sizeof(_Range1ValueType) > sizeof(_Range2ValueType)),
_Range1ValueType, _Range2ValueType>;

const std::size_t __n = __rng1.size() + __rng2.size();

// Empirical number of values to process per work-item
Expand Down
Loading