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

Pay off some JNI RMM API tech debt #12632

Merged
merged 8 commits into from
Jan 31, 2023

Conversation

revans2
Copy link
Contributor

@revans2 revans2 commented Jan 27, 2023

Signed-off-by: Robert (Bobby) Evans [email protected]

Description

This makes the java APIs for RMM more closely match the C++ APIs.

Checklist

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

Signed-off-by: Robert (Bobby) Evans <[email protected]>
@revans2 revans2 added 3 - Ready for Review Ready for review by team Java Affects Java cuDF API. Spark Functionality that helps Spark RAPIDS tech debt improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Jan 27, 2023
@revans2 revans2 self-assigned this Jan 27, 2023
@revans2 revans2 requested a review from a team as a code owner January 27, 2023 19:59
@codecov
Copy link

codecov bot commented Jan 27, 2023

Codecov Report

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

Additional details and impacted files
@@               Coverage Diff               @@
##             branch-23.04   #12632   +/-   ##
===============================================
  Coverage                ?   85.82%           
===============================================
  Files                   ?      158           
  Lines                   ?    25184           
  Branches                ?        0           
===============================================
  Hits                    ?    21614           
  Misses                  ?     3570           
  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.

@revans2
Copy link
Contributor Author

revans2 commented Jan 31, 2023

/merge

@rapids-bot rapids-bot bot merged commit d715ac8 into rapidsai:branch-23.04 Jan 31, 2023
@revans2 revans2 deleted the jni_rmm_tech_debt branch January 31, 2023 19:27
rapids-bot bot pushed a commit that referenced this pull request Feb 3, 2023
Fixes a bug introduced here #12632 where the C++ version of the jni call `Rmm.newCudaAsyncMemoryResource` was taking an extra argument (`child`), causing the `threshold` to be set to a random value since the calling code defined the native method has taking 2 longs, not 3.

The above can affect performance if the threshold is set to 0 for example. The async pool will reduce its footprint by releasing memory, which means we need to go back and reallocate. This is how I found it.

I am starting the build process for this, so it's going to take me a bit to test.

Authors:
  - Alessandro Bellina (https://github.com/abellina)

Approvers:
  - Jason Lowe (https://github.com/jlowe)

URL: #12681
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 Java Affects Java cuDF API. non-breaking Non-breaking change Spark Functionality that helps Spark RAPIDS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants