Use nvcomp's snappy decompressor in avro reader - #9181
Conversation
Cmake changes (excluding changes needed in nvcomp's cmake) Replace cuIO's snappy compressor with nvcomp
…or rather than a hardcoded value
When writing statistics, there's not enough space allocated in chunk's compressed buffer. This results in the compressed buffer being written into another chunk's memory.
Decompression works and newly added pytest passes. Needs cleanup and benchmarking
And more cleanups
| GITHUB_REPOSITORY NVIDIA/nvcomp | ||
| GIT_TAG 3a12516afdeab4ace01298031757f84b8dda81b7 | ||
| # GIT_SHALLOW TRUE | ||
| OPTIONS "BUILD_TESTS OFF" |
There was a problem hiding this comment.
We should add BUILD_STATIC ON to the nvcomp options. This will make it build as a static library and become embedded into cudf so we don't need to distribute another shared library along side cudf
There was a problem hiding this comment.
Will the nvcomp APIs be exported to users of libcudf.so? We have Java bindings to nvcomp in the cudf Java bindings (yeah, it's odd, long story). It would be nice to be able to leverage the lone instance of nvcomp rather than shipping a separate copy of nvcomp in the cudf jar.
There was a problem hiding this comment.
If built statically we wouldn't be able to provide a stable nvcomp API since any function not used by libcudf.so would be removed by the linker.
If we need to package nvcomp as part of our dependencies we need to make sure of the following:
- we are using the same nvcomp between the java bindings and cudf
- we have a conda nvcomp package
There was a problem hiding this comment.
Yeah if it's complicated we'll just ship our own statically-linked nvcomp with the Java bindings.
nvdbaranec
left a comment
There was a problem hiding this comment.
Just a couple of small things.
|
rerun tests |
Codecov Report
@@ Coverage Diff @@
## branch-21.12 #9181 +/- ##
===============================================
Coverage ? 10.89%
===============================================
Files ? 115
Lines ? 19087
Branches ? 0
===============================================
Hits ? 2080
Misses ? 17007
Partials ? 0 Continue to review full report at Codecov.
|
ajschmidt8
left a comment
There was a problem hiding this comment.
Approving ops-codeowner file changes
|
@gpucibot merge |
Depends on rapidsai/integration#352