Skip to content

Comments

More changes related to unique_copy and copy_if#2561

Merged
akukanov merged 10 commits intomainfrom
dev/cosmetic-changes-akukanov
Feb 10, 2026
Merged

More changes related to unique_copy and copy_if#2561
akukanov merged 10 commits intomainfrom
dev/cosmetic-changes-akukanov

Conversation

@akukanov
Copy link
Contributor

@akukanov akukanov commented Jan 16, 2026

  • Create an alias for walk_n<oneapi::dpl::identity>; use where appropriate
  • Remove redundant use of __pstl_assign in the copy_if call chain
  • Replace __create_mask_unique_copy with __create_mask using the index predicates
  • Remove redundant BinaryOp parameter (which was always std::plus) from copy_/partition_by_mask
  • Simplify the use of __parallel_copy_if_single_group_functor

@akukanov akukanov force-pushed the dev/cosmetic-changes-akukanov branch 2 times, most recently from 02ffa9c to 9bf68f0 Compare January 20, 2026 13:22
@akukanov akukanov changed the title Cosmetic changes here and there Cosmetic changes in the SYCL backend implementations of unique_copy and copy_if Jan 20, 2026
@akukanov akukanov marked this pull request as ready for review January 20, 2026 19:33
@akukanov akukanov changed the title Cosmetic changes in the SYCL backend implementations of unique_copy and copy_if Cosmetic changes related to unique_copy and copy_if Jan 22, 2026
@akukanov akukanov force-pushed the dev/cosmetic-changes-akukanov branch 2 times, most recently from 185e596 to 1095484 Compare January 22, 2026 16:11
@akukanov akukanov marked this pull request as draft January 22, 2026 16:12
@akukanov akukanov force-pushed the dev/cosmetic-changes-akukanov branch from 1095484 to 06fd708 Compare January 22, 2026 17:58
@akukanov akukanov force-pushed the dev/cosmetic-changes-akukanov branch 4 times, most recently from 69e2ace to 1d2f38c Compare January 23, 2026 13:19
@akukanov akukanov changed the title Cosmetic changes related to unique_copy and copy_if More changes related to unique_copy and copy_if Jan 23, 2026
@akukanov akukanov force-pushed the dev/cosmetic-changes-akukanov branch 2 times, most recently from 9e09683 to 14c4c11 Compare January 23, 2026 17:12
@akukanov akukanov marked this pull request as ready for review January 26, 2026 11:05
@akukanov akukanov force-pushed the dev/cosmetic-changes-akukanov branch from dbcdacf to 14c4c11 Compare January 27, 2026 13:52
SergeyKopienko
SergeyKopienko previously approved these changes Feb 2, 2026
Copy link
Contributor

@SergeyKopienko SergeyKopienko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@akukanov akukanov added this to the 2022.12.0 milestone Feb 9, 2026
auto __lacc = __dpl_sycl::__local_accessor<_ValueType>(sycl::range<1>(__n_uniform * 2 + 1), __hdl);
auto __res_acc = __get_accessor(sycl::write_only, __result, __hdl, __dpl_sycl::__no_init{});
std::uint16_t __wg_size = static_cast<std::uint16_t>(std::min(__n_uniform, __max_wg_size));

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added to #2562

SergeyKopienko
SergeyKopienko previously approved these changes Feb 10, 2026
Copy link
Contributor

@SergeyKopienko SergeyKopienko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

  • one small comment - up to you.

return true;
}
else
static_assert(std::is_signed_v<_IndexTp>);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May be nice to have a text message here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added to #2562

Copy link
Contributor

@danhoeflinger danhoeflinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, minor comment you can fix if you want.

@akukanov akukanov merged commit 4fd9638 into main Feb 10, 2026
22 of 23 checks passed
@akukanov akukanov deleted the dev/cosmetic-changes-akukanov branch February 10, 2026 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants