-
Notifications
You must be signed in to change notification settings - Fork 925
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
Update Java nvcomp JNI bindings to nvcomp 2.x API #9384
Conversation
Can one of the admins verify this patch? |
1 similar comment
Can one of the admins verify this patch? |
ok to test |
java/src/main/java/ai/rapids/cudf/nvcomp/BatchedLZ4Compressor.java
Outdated
Show resolved
Hide resolved
java/src/main/java/ai/rapids/cudf/nvcomp/BatchedLZ4Compressor.java
Outdated
Show resolved
Hide resolved
java/src/main/java/ai/rapids/cudf/nvcomp/BatchedLZ4Decompressor.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall it's looking really good. My comments are mostly around clarification. I'll do another pass when you want me to look again.
java/src/main/java/ai/rapids/cudf/nvcomp/BatchedLZ4Compressor.java
Outdated
Show resolved
Hide resolved
java/src/main/java/ai/rapids/cudf/nvcomp/BatchedLZ4Compressor.java
Outdated
Show resolved
Hide resolved
java/src/main/java/ai/rapids/cudf/nvcomp/BatchedLZ4Compressor.java
Outdated
Show resolved
Hide resolved
ok to test |
ok to test |
ok to test |
1 similar comment
ok to test |
Codecov Report
@@ Coverage Diff @@
## branch-21.12 #9384 +/- ##
================================================
- Coverage 10.79% 10.65% -0.14%
================================================
Files 116 117 +1
Lines 18869 19760 +891
================================================
+ Hits 2036 2106 +70
- Misses 16833 17654 +821
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a few last comments, mostly nits.
java/src/main/java/ai/rapids/cudf/nvcomp/BatchedLZ4Compressor.java
Outdated
Show resolved
Hide resolved
java/src/main/java/ai/rapids/cudf/nvcomp/BatchedLZ4Compressor.java
Outdated
Show resolved
Hide resolved
I pushed another commit to change places where chunkSizes were using ints instead of longs. This was based on comments in NVIDIA/spark-rapids#3757 |
java/src/main/java/ai/rapids/cudf/nvcomp/BatchedLZ4Compressor.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had one last nit, otherwise LGTM
Thanks @abellina! I have updated to restore the copyFromHostBuffer along with a fix for the unit test and your other comments. |
@jlowe, when you get a chance, could you give this another look? |
@gpucibot merge |
1 similar comment
@gpucibot merge |
This PR Closes #8336
The Java nvcomp JNI bindings are updated to the nvcomp 2.x API and the nvcomp library is no longer built as part of the Java build. It is reused from the dependency that libcudf is using.
Note that the nvcomp 1.x API is no longer supported by the CUDF Java JNI, so this is a breaking change. Spark-Rapids currently depends on the nvcomp 1.x JNI. I will be putting up a PR for spark-rapids that changes it to use this 2.x JNI, which will need to be merged soon after this PR to minimize incompatibilities.