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

float64 support in multi-sum and child_index() #4648

Merged
merged 7 commits into from
Mar 31, 2022

Conversation

canonizer
Copy link
Contributor

  • removed default T = float from multi-sum
  • tests with float64 for multi-sum and child_index()
  • refactored multi-sum tests to reduce shared memory usage
    • this is needed for the tests with float64 to compile

This is pull request 1 of 3 to integrate #4646. This pull request is partly based on the work by @levsnv.

- removed default T=float from multi-sum
- tests with float64 for multi-sum and child_index()
@canonizer canonizer requested a review from a team as a code owner March 22, 2022 22:15
@canonizer
Copy link
Contributor Author

rerun tests

@codecov-commenter
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (branch-22.04@3f54aec). Click here to learn what that means.
The diff coverage is n/a.

@@               Coverage Diff               @@
##             branch-22.04    #4648   +/-   ##
===============================================
  Coverage                ?   83.86%           
===============================================
  Files                   ?      251           
  Lines                   ?    20293           
  Branches                ?        0           
===============================================
  Hits                    ?    17018           
  Misses                  ?     3275           
  Partials                ?        0           
Flag Coverage Δ
dask 44.92% <0.00%> (?)
non-dask 77.02% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3f54aec...2e54a75. Read the comment docs.

Comment on lines 55 to 62
operator dense_node<float>()
{
return dense_node<float>({}, split<float>(), fid, def_left, false, is_categorical);
}
operator dense_node<double>()
{
return dense_node<double>({}, split<double>(), fid, def_left, false, is_categorical);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Any reason not to write this as a single template?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done. Thanks for the suggestion!

Comment on lines 65 to 70
return sparse_node16<float>({}, split<float>(), fid, def_left, false, is_categorical, left);
}
operator sparse_node8()
operator sparse_node16<double>()
{
return sparse_node8({}, split(), fid, def_left, false, is_categorical, left);
return sparse_node16<double>({}, split<double>(), fid, def_left, false, is_categorical, left);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here: Any reason not to use a single template for this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@dantegd dantegd added improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Mar 24, 2022
@dantegd dantegd added this to PR-WIP in v22.06 Release via automation Mar 24, 2022
v22.06 Release automation moved this from PR-WIP to PR-Reviewer approved Mar 24, 2022
Copy link
Member

@divyegala divyegala left a comment

Choose a reason for hiding this comment

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

Thanks! Just a very small suggestion that is probably not performance-critical as I notice most of this PR is testing changes. LGTM

cpp/test/sg/fil_child_index_test.cu Outdated Show resolved Hide resolved
canonizer and others added 2 commits March 24, 2022 22:22
@canonizer
Copy link
Contributor Author

@wphicks I've addressed all of your comments. Could you take another look?

@canonizer
Copy link
Contributor Author

rerun tests

@canonizer canonizer changed the base branch from branch-22.04 to branch-22.06 March 28, 2022 21:01
@canonizer
Copy link
Contributor Author

rerun tests

@wphicks
Copy link
Contributor

wphicks commented Mar 28, 2022

@gpucibot merge

@canonizer
Copy link
Contributor Author

rerun tests

2 similar comments
@canonizer
Copy link
Contributor Author

rerun tests

@canonizer
Copy link
Contributor Author

rerun tests

@rapids-bot rapids-bot bot merged commit 257a99c into rapidsai:branch-22.06 Mar 31, 2022
v22.06 Release automation moved this from PR-Reviewer approved to Done Mar 31, 2022
venkywonka pushed a commit to venkywonka/cuml that referenced this pull request Apr 26, 2022
- removed default `T = float` from multi-sum
- tests with float64 for multi-sum and `child_index()`
- refactored multi-sum tests to reduce shared memory usage
  - this is needed for the tests with float64 to compile

This is pull request 1 of 3 to integrate rapidsai#4646. This pull request is partly based on the work by @levsnv.

Authors:
  - Andy Adinets (https://github.com/canonizer)

Approvers:
  - Divye Gala (https://github.com/divyegala)
  - William Hicks (https://github.com/wphicks)

URL: rapidsai#4648
vimarsh6739 pushed a commit to vimarsh6739/cuml that referenced this pull request Oct 9, 2023
- removed default `T = float` from multi-sum
- tests with float64 for multi-sum and `child_index()`
- refactored multi-sum tests to reduce shared memory usage
  - this is needed for the tests with float64 to compile

This is pull request 1 of 3 to integrate rapidsai#4646. This pull request is partly based on the work by @levsnv.

Authors:
  - Andy Adinets (https://github.com/canonizer)

Approvers:
  - Divye Gala (https://github.com/divyegala)
  - William Hicks (https://github.com/wphicks)

URL: rapidsai#4648
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CUDA/C++ improvement Improvement / enhancement to an existing function non-breaking Non-breaking change
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

5 participants