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

[JNI] Remove child fom newCudaAsyncMemoryResource #12681

Conversation

abellina
Copy link
Contributor

@abellina abellina commented Feb 2, 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.

@github-actions github-actions bot added the Java Affects Java cuDF API. label Feb 2, 2023
@abellina abellina added bug Something isn't working 2 - In Progress Currently a work in progress Spark Functionality that helps Spark RAPIDS non-breaking Non-breaking change labels Feb 2, 2023
@abellina abellina changed the title Remove child fom newCudaAsyncMemoryResource [JNI] Remove child fom newCudaAsyncMemoryResource Feb 2, 2023
@abellina abellina marked this pull request as ready for review February 2, 2023 21:10
@abellina abellina requested a review from a team as a code owner February 2, 2023 21:10
@abellina abellina requested a review from revans2 February 2, 2023 21:10
@abellina
Copy link
Contributor Author

abellina commented Feb 2, 2023

@revans2 @jlowe this should be ok to go in now.

@abellina abellina removed the request for review from revans2 February 2, 2023 21:11
@codecov
Copy link

codecov bot commented Feb 2, 2023

Codecov Report

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

Additional details and impacted files
@@               Coverage Diff               @@
##             branch-23.04   #12681   +/-   ##
===============================================
  Coverage                ?   85.81%           
===============================================
  Files                   ?      158           
  Lines                   ?    25153           
  Branches                ?        0           
===============================================
  Hits                    ?    21586           
  Misses                  ?     3567           
  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.

@abellina
Copy link
Contributor Author

abellina commented Feb 2, 2023

Dask/python tests failing it looks like.

@abellina
Copy link
Contributor Author

abellina commented Feb 2, 2023

Upmerged to see if that helps the CI pass, since I see some related python changes went in.

@abellina abellina removed the 2 - In Progress Currently a work in progress label Feb 3, 2023
@abellina
Copy link
Contributor Author

abellina commented Feb 3, 2023

Also: ArrowIOTest.S3FileSystem failed, unrelated.

@jlowe
Copy link
Member

jlowe commented Feb 3, 2023

/merge

@rapids-bot rapids-bot bot merged commit e380331 into rapidsai:branch-23.04 Feb 3, 2023
@abellina abellina deleted the rmmjni/fix_extra_argument_for_new_cuda_async_memory_resource branch February 3, 2023 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working 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