Skip to content

Relocate SYCL scan-by-segment to pstl/hetero/dpcpp #2275

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

Merged
merged 10 commits into from
Jun 4, 2025

Conversation

mmichel11
Copy link
Contributor

This addresses #2210.

The current SYCL implementation of the scan-by-segment algorithms is in the internal directory in the oneapi::dpl::__par_backend_hetero namespace. This does not align with our general architecture, so the implementation has been moved to pstl/hetero/dpcpp/parallel_backend_sycl_scan_by_segment.h. Furthermore, __pattern_scan_by_segment has been relocated to pstl/hetero/algorithm_impl_hetero.h.

Additionally, the following small tweaks are made:

  • ::std -> std
  • A correction of an access mode in __pattern_scan_by_segment
  • An added static assert

@mmichel11 mmichel11 added this to the 2022.10.0 milestone May 21, 2025
@mmichel11 mmichel11 requested a review from SergeyKopienko May 21, 2025 15:19
@mmichel11 mmichel11 marked this pull request as ready for review May 21, 2025 16:07
@mmichel11 mmichel11 changed the title [Draft] Relocate SYCL scan-by-segment to pstl/hetero/dpcpp Relocate SYCL scan-by-segment to pstl/hetero/dpcpp May 21, 2025
@MikeDvorskiy
Copy link
Contributor

Overall, looks good to me, excepting one minor comment.

SergeyKopienko
SergeyKopienko previously approved these changes Jun 3, 2025
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

danhoeflinger
danhoeflinger previously approved these changes Jun 3, 2025
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.

Yeah, LGTM as well.

@mmichel11 mmichel11 dismissed stale reviews from danhoeflinger and SergeyKopienko via ef54da7 June 3, 2025 13:37
SergeyKopienko
SergeyKopienko previously approved these changes Jun 3, 2025
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

SergeyKopienko
SergeyKopienko previously approved these changes Jun 3, 2025
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

MikeDvorskiy
MikeDvorskiy previously approved these changes Jun 3, 2025
Copy link
Contributor

@MikeDvorskiy MikeDvorskiy left a comment

Choose a reason for hiding this comment

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

LGTM

@mmichel11 mmichel11 dismissed stale reviews from MikeDvorskiy and SergeyKopienko via fc2ca42 June 4, 2025 15:01
@mmichel11
Copy link
Contributor Author

I noticed some header includes in the moved scan-by-segment file are now unnecessary and a few others should be present. I updated these.

mmichel11 added 10 commits June 4, 2025 10:19
Signed-off-by: Matthew Michel <matthew.michel@intel.com>
Signed-off-by: Matthew Michel <matthew.michel@intel.com>
Signed-off-by: Matthew Michel <matthew.michel@intel.com>
Signed-off-by: Matthew Michel <matthew.michel@intel.com>
Signed-off-by: Matthew Michel <matthew.michel@intel.com>
Signed-off-by: Matthew Michel <matthew.michel@intel.com>
Signed-off-by: Matthew Michel <matthew.michel@intel.com>
Signed-off-by: Matthew Michel <matthew.michel@intel.com>
Signed-off-by: Matthew Michel <matthew.michel@intel.com>
Signed-off-by: Matthew Michel <matthew.michel@intel.com>
@mmichel11 mmichel11 force-pushed the dev/mmichel11/scan_by_segment_move_sycl_code branch from fc2ca42 to 82d86e0 Compare June 4, 2025 15:20
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

@mmichel11 mmichel11 merged commit 3f1c9a8 into main Jun 4, 2025
19 checks passed
@mmichel11 mmichel11 deleted the dev/mmichel11/scan_by_segment_move_sycl_code branch June 4, 2025 16:06
@SergeyKopienko
Copy link
Contributor

@mmichel11 thank you for this PR!

timmiesmith pushed a commit that referenced this pull request Jun 9, 2025
* Moves SYCL specific code to `pstl/hetero/dpcpp` to align with our general design

---------

Signed-off-by: Matthew Michel <matthew.michel@intel.com>
danhoeflinger pushed a commit that referenced this pull request Jun 13, 2025
* Moves SYCL specific code to `pstl/hetero/dpcpp` to align with our general design

---------

Signed-off-by: Matthew Michel <matthew.michel@intel.com>
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.

Move scan-by-segment implementations into the pstl/hetero/dpcpp directory
4 participants