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

Fix sort gtests coded in namespace cudf::test #12237

Merged
merged 2 commits into from
Nov 29, 2022

Conversation

davidwendt
Copy link
Contributor

Description

Fixes sort gtests source files coded in namespace cudf::test
The segmented_sort_tests.cpp also included calls to detail functions which were unnecessary. These were changed to call the external API instead. This also allowed removing the default parameters from the segmented-sort detail functions.
No function or test has changed just the source code reworked per namespaces.

Reference #11734

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@davidwendt davidwendt added 2 - In Progress Currently a work in progress libcudf Affects libcudf (C++/CUDA) code. improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Nov 23, 2022
@davidwendt davidwendt self-assigned this Nov 23, 2022
@codecov
Copy link

codecov bot commented Nov 24, 2022

Codecov Report

❗ No coverage uploaded for pull request base (branch-23.02@7426a06). Click here to learn what that means.
Patch has no changes to coverable lines.

Additional details and impacted files
@@               Coverage Diff               @@
##             branch-23.02   #12237   +/-   ##
===============================================
  Coverage                ?   88.26%           
===============================================
  Files                   ?      137           
  Lines                   ?    22586           
  Branches                ?        0           
===============================================
  Hits                    ?    19935           
  Misses                  ?     2651           
  Partials                ?        0           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@davidwendt davidwendt added 3 - Ready for Review Ready for review by team and removed 2 - In Progress Currently a work in progress labels Nov 28, 2022
@davidwendt davidwendt marked this pull request as ready for review November 28, 2022 14:00
@davidwendt davidwendt requested a review from a team as a code owner November 28, 2022 14:00
Copy link
Contributor

@nvdbaranec nvdbaranec left a comment

Choose a reason for hiding this comment

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

What's the advantage to removing the default parameters to the segmented_sorted_order() functions? It makes those declarations inconsistent with others in sorting.hpp

@davidwendt
Copy link
Contributor Author

What's the advantage to removing the default parameters to the segmented_sorted_order() functions? It makes those declarations inconsistent with others in sorting.hpp

This helps with removing the default for the stream parameter.
Reference: #11967 (comment)
I'll investigate the other functions in a later PR.

@davidwendt
Copy link
Contributor Author

@gpucibot merge

@rapids-bot rapids-bot bot merged commit 715aa9a into rapidsai:branch-23.02 Nov 29, 2022
@davidwendt davidwendt deleted the fix-gtests-ns-sort branch November 29, 2022 15:10
rapids-bot bot pushed a commit that referenced this pull request Nov 30, 2022
…ns (#12254)

Removes the default parameter declarations from `cudf::detail::sort`, `cudf::detail::sorted_order`, `cudf::detail::sort_by_key`,  `cudf::detail::stable_sorted_order`, and `cudf::detail::stable_sort_by_key` as well as `cudf::detail::quantile`, `cudf::detail::quantiles` and `cudf::detail::percentile_approx`
Reference comment: #12237 (comment)
Also fixes incorrect stream parameter passed within a `quantiles.cu` detail function.
No function has been added, modified, or changed.

Authors:
  - David Wendt (https://github.com/davidwendt)

Approvers:
  - Mark Harris (https://github.com/harrism)
  - Nghia Truong (https://github.com/ttnghia)
  - Yunsong Wang (https://github.com/PointKernel)

URL: #12254
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 - Ready for Review Ready for review by team improvement Improvement / enhancement to an existing function libcudf Affects libcudf (C++/CUDA) code. non-breaking Non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants