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

[dpc++][ranges] adjacent_find, none_of, swap_ranges, copy_if... #202

Merged
merged 40 commits into from
May 24, 2021

Conversation

MikeDvorskiy
Copy link
Contributor

@MikeDvorskiy MikeDvorskiy commented Apr 20, 2021

[dpc++][ranges] adjacent_find, none_of, swap_ranges, copy_if, remove_copy, remove_copy_if, unique, unique_copy, reverse, reverse_copy, rotate_copy

@andreyfe1
Copy link
Contributor

Seems not all algorithms are covered by tests. Do you plan to add tests for them to the patch?

@MikeDvorskiy
Copy link
Contributor Author

Seems not all algorithms are covered by tests. Do you plan to add tests for them to the patch?

Yes, I'm going to add the missed tests.

@MikeDvorskiy MikeDvorskiy changed the title [dpc++][ranges] adjacent_find, none_of, swap_ranges, copy_if... WIP: [dpc++][ranges] adjacent_find, none_of, swap_ranges, copy_if... Apr 21, 2021
@MikeDvorskiy MikeDvorskiy force-pushed the dev/mdvorski/ranges_algo_April_theses branch 2 times, most recently from 750f04c to 7a596f5 Compare April 22, 2021 09:59
@MikeDvorskiy MikeDvorskiy changed the title WIP: [dpc++][ranges] adjacent_find, none_of, swap_ranges, copy_if... [dpc++][ranges] adjacent_find, none_of, swap_ranges, copy_if... Apr 26, 2021
@MikeDvorskiy MikeDvorskiy force-pushed the dev/mdvorski/ranges_algo_April_theses branch from 21fdd24 to ace3e9a Compare April 28, 2021 09:05
Copy link
Contributor

@andreyfe1 andreyfe1 left a comment

Choose a reason for hiding this comment

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

Looks good to me overall

@MikeDvorskiy MikeDvorskiy force-pushed the dev/mdvorski/ranges_algo_April_theses branch 5 times, most recently from 44ea00e to ac05de3 Compare April 30, 2021 14:33
include/oneapi/dpl/pstl/hetero/algorithm_impl_hetero.h Outdated Show resolved Hide resolved
include/oneapi/dpl/pstl/hetero/dpcpp/unseq_backend_sycl.h Outdated Show resolved Hide resolved
include/oneapi/dpl/pstl/hetero/dpcpp/utils_ranges_sycl.h Outdated Show resolved Hide resolved
test/parallel_api/ranges/rotate_copy_ranges_sycl.pass.cpp Outdated Show resolved Hide resolved
@MikeDvorskiy MikeDvorskiy force-pushed the dev/mdvorski/ranges_algo_April_theses branch from a0f99e2 to 60f3f96 Compare May 12, 2021 08:40
@MikeDvorskiy MikeDvorskiy force-pushed the dev/mdvorski/ranges_algo_April_theses branch 3 times, most recently from 16e11d0 to 3d57394 Compare May 13, 2021 09:22
@MikeDvorskiy MikeDvorskiy force-pushed the dev/mdvorski/ranges_algo_April_theses branch 5 times, most recently from 6622184 to da29051 Compare May 19, 2021 07:30
@MikeDvorskiy MikeDvorskiy force-pushed the dev/mdvorski/ranges_algo_April_theses branch from 11d5db9 to 3681f3e Compare May 24, 2021 13:04
Copy link
Contributor

@rarutyun rarutyun left a comment

Choose a reason for hiding this comment

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

There are some issues on the infrastructure side but I don't have any questions to the patch itself. Looks good to me

@MikeDvorskiy MikeDvorskiy merged commit b7cbcb3 into main May 24, 2021
@MikeDvorskiy MikeDvorskiy deleted the dev/mdvorski/ranges_algo_April_theses branch May 24, 2021 14:55
ValentinaKats pushed a commit that referenced this pull request May 25, 2021
* [dpc++][ranges] + none_of, adjacent_find

* [dpc++][ranges] + copy_if, swap_ranges

* [dpc++][ranges] + remove_copy, remove_copy_if

* [dpc++][ranges] + unique, unique_copy

* [dpc++][ranges] + clang format and fixing typos

* [dpc++][ranges] + fix for none_of

* [dpc++][ranges] + test for range-based none_of, adjacent_find

* [dpc++][ranges] + reverse, reverse_copy, rotate_copy

* [dpc++][ranges] + test for range-based swap_ranges

* [dpc++][ranges] + views::host_all - a custom utility for data access in the host

* [dpc++][ranges] + test for range-based copy_if

* [dpc++][ranges] + using oneapi::dpl::__ranges::views::host_all

* + clang format

* [dpc++][ranges] + test for range-based remove_copy, remove_copy_if

* [dpc++][ranges] + fixes for reverse, reverse_copy, rotate_copy

* [dpc++][ranges] + test for range-based rotate_copy

* [dpc++][pstl][tests] + EXPECT_EQ_RANGES utility

* [dpc++][ranges] + fix for range-based rotate_copy

* [dpc++][ranges] + range-based versions of reverse, reverse_copy, unique, unique_copy, and the tests

* [dpc++][ranges][tests] + minor fixes

* [dpc++][pstl][tests] + fix for test utils

* [dpc++][ranges] + fix a typo; - extra empty lines

* [dpc++][ranges] +  using nano::subrange

* [dpc++][ranges] + fix for range-based replace_copy, replace_copy_if

* [dpc++][ranges] + tests for replace_copy, replace_copy_if

* + clang format

* [dpc++][pstl][tests] + minor change for copy_if_ranges_sycl.pass.cpp

* [dpc++][ranges] + PR202 review comments have been addressed.

* [dpc++][ranges] + minor changes in all_view_fn, all_view

* [dpc++][ranges][tests] + constexpr

* + clang format

* [dpc++][ranges] + __get_min_size

* [dpc++][ranges] + min size range as first for swap_ranges algorithm

* [dpc++][ranges] extension of coverage for swap_ranges algo; processing ranges with different sizes

* + clang format

* [dpc++][ranges] + a fix for swap_ranges algorithm

* [dpc++][ranges] + "test experiment" for swap_ranges_sycl.pass.cpp

* [dpc++][ranges] + test coverage improvement (+ a predicate)

* [dpc++][ranges] + revert "test experiment" for swap_ranges_sycl.pass.cpp

* Revert "[dpc++][sycl] +  passing sycl::bundle_state::object for sycl::get_kernel_bundle"

This reverts commit 450cff1.
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.

None yet

4 participants