-
Notifications
You must be signed in to change notification settings - Fork 115
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
Avoid specializations of the same submitters with the some policy type but with different type qualifiers (l-value
, r-value
)
#2093
Open
SergeyKopienko
wants to merge
52
commits into
main
Choose a base branch
from
dev/skopienko/fix_exec_policy_type_in_submitters_V1
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
52 commits
Select commit
Hold shift + click to select a range
dc4981d
Fix __sycl_scan_by_segment_impl::operator()
SergeyKopienko 5966a4e
Fix __parallel_reduce_then_scan_reduce_submitter::operator()
SergeyKopienko d414227
Fix __parallel_reduce_then_scan_scan_submitter::operator()
SergeyKopienko 846b038
Fix __parallel_transform_reduce_device_kernel_submitter::operator()
SergeyKopienko 2f6dbaf
Fix __parallel_transform_reduce_work_group_kernel_submitter::operator()
SergeyKopienko b2f39ca
Fix __parallel_transform_reduce_small_submitter::operator()
SergeyKopienko 995ede7
Fix __parallel_radix_sort_iteration::operator()
SergeyKopienko 94e9b9b
Fix __parallel_merge_submitter::operator()
SergeyKopienko 803436d
Fix __parallel_for_fpga_submitter::operator()
SergeyKopienko de644f0
Fix __parallel_for_small_submitter::operator()
SergeyKopienko db3c851
Fix __parallel_scan_submitter::operator()
SergeyKopienko 3574179
Fix __parallel_copy_if_static_single_group_submitter::operator()
SergeyKopienko eba0a89
Fix __histogram_general_registers_local_reduction_submitter::operator()
SergeyKopienko 50c4f63
Fix __histogram_general_local_atomics_submitter::operator()
SergeyKopienko 824bb72
Fix __parallel_transform_reduce_impl::operator()
SergeyKopienko 282c852
Fix __parallel_transform_reduce_then_scan
SergeyKopienko 5da82b1
Fix __parallel_reduce_by_segment_fallback
SergeyKopienko 51f6dda
Fix __scan_by_segment_impl_common -> __sycl_scan_by_segment_impl::ope…
SergeyKopienko f633c9e
Fix __parallel_transform_reduce_small_impl -> __parallel_transform_re…
SergeyKopienko 8841284
Fix __parallel_transform_reduce_mid_impl -> __parallel_transform_redu…
SergeyKopienko 7d7414d
Fix radix_sort and stuff
SergeyKopienko 629986e
Fix __parallel_merge_submitter_large::eval_split_points_for_groups
SergeyKopienko a4412d1
Fix __parallel_merge_submitter_large::run_parallel_merge
SergeyKopienko 47f5ee5
Fix __parallel_merge -> __parallel_merge_submitter::operator(), __par…
SergeyKopienko ac1b9b8
Fix __merge_sort and stuff
SergeyKopienko be8fe91
Fix __radix_sort_count_submit
SergeyKopienko 50288d6
Fix __radix_sort_scan_submit
SergeyKopienko 874a10e
Fix __radix_sort_reorder_submit
SergeyKopienko 9185dbe
Fix __parallel_transform_scan_single_group -> __parallel_transform_sc…
SergeyKopienko 02903da
Fix __parallel_transform_scan_base -> __parallel_scan_submitter::oper…
SergeyKopienko d81d171
Fix __parallel_transform_scan -> __parallel_transform_scan_single_gro…
SergeyKopienko 6559b0c
Fix __invoke_single_group_copy_if::operator() -> __parallel_copy_if_s…
SergeyKopienko 47d6c93
Fix __parallel_reduce_then_scan_copy -> __parallel_transform_reduce_t…
SergeyKopienko 6f30401
Fix __parallel_reduce_by_segment_reduce_then_scan -> __parallel_trans…
SergeyKopienko c2daf0a
Fix __parallel_set_reduce_then_scan -> __parallel_transform_reduce_th…
SergeyKopienko 99ce9b5
Fix __parallel_for -> __parallel_for_fpga_submitter::operator()
SergeyKopienko 638c2ff
Fix __histogram_general_registers_local_reduction -> __histogram_gene…
SergeyKopienko ebbb160
Fix __histogram_general_private_global_atomics_submitter::operator()
SergeyKopienko d3e6fb2
Fix __histogram_general_local_atomics -> __histogram_general_local_at…
SergeyKopienko a266177
Fix __histogram_general_private_global_atomics -> __histogram_general…
SergeyKopienko 59f1831
Fix __parallel_histogram_select_kernel -> __histogram_general_registe…
SergeyKopienko fab428e
Fix __parallel_histogram -> __parallel_histogram_select_kernel
SergeyKopienko d99a2cd
Fix __parallel_transform_reduce -> __parallel_transform_reduce_small_…
SergeyKopienko b150823
Fix __parallel_radix_sort -> __parallel_radix_sort_iteration::submit(…
SergeyKopienko 6327040
Fix __parallel_reduce_then_scan_copy
SergeyKopienko 89370f8
fix __parallel_reduce_by_segment_reduce_then_scan -> __parallel_trans…
SergeyKopienko d2cd3a2
include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl_radix_sort…
SergeyKopienko 85bc86f
Apply GitHUB clang format
SergeyKopienko bdb73a2
Update include/oneapi/dpl/internal/scan_by_segment_impl.h
SergeyKopienko 83339c8
Fix review comments
SergeyKopienko 1b13d6f
test/general/lambda_naming.pass.cpp - expand test coverage
SergeyKopienko ca5f2da
include/oneapi/dpl/pstl/hetero/numeric_impl_hetero.h - fix broken tes…
SergeyKopienko File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
154 changes: 78 additions & 76 deletions
154
include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl.h
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need to change this signature as well? A const lvalue ref can accept whatever policy type is forwarded along from this function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed this signature because the initial idea was to change signature of submitters and on one level up (their callers).
This
__scan_by_segment_impl_common
function calls some submitter__sycl_scan_by_segment_impl
:There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, I don't have a strong objection, but I also don't think this part is necessary. I believe both options should have the same number of "copies" of the execution policy, to switch over from rvalue and bind to const lvalue ref, then stay as a lvalue ref without copies the rest of the way.
In theory there could be some other function call here which we could forward perfectly to, but that is not the case in practice.
Both options provide a single template instantiation of the submitter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please see my comment at #2093 (comment)