-
Notifications
You must be signed in to change notification settings - Fork 915
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use nvcomp's snappy compressor in parquet writer (#8229)
Adds nvcomp dependency and uses nvcomp's batched snappy compression functions in parquet writer. Adds an environment variable `LIBCUDF_USE_NVCOMP` to switch between cuIO's internal snappy compressor and nvcomp's compressor. Using nvcomp is disabled by default. Use `export LIBCUDF_USE_NVCOMP=1` to switch to nvcomp's compressor. Authors: - Devavret Makkar (https://github.com/devavret) Approvers: - Vukasin Milovanovic (https://github.com/vuule) - Robert Maynard (https://github.com/robertmaynard) URL: #8229
- Loading branch information
Showing
7 changed files
with
199 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#============================================================================= | ||
# Copyright (c) 2021, NVIDIA CORPORATION. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
#============================================================================= | ||
|
||
function(find_and_configure_nvcomp VERSION) | ||
|
||
# Find or install nvcomp | ||
rapids_cpm_find(nvcomp ${VERSION} | ||
GLOBAL_TARGETS nvcomp::nvcomp | ||
CPM_ARGS | ||
GITHUB_REPOSITORY NVIDIA/nvcomp | ||
GIT_TAG 4f4e5713e69473be6e0c8ae483a932f666ae3c2f | ||
OPTIONS "BUILD_STATIC ON" | ||
"BUILD_TESTS OFF" | ||
"BUILD_BENCHMARKS OFF" | ||
"BUILD_EXAMPLES OFF" | ||
) | ||
|
||
if(NOT TARGET nvcomp::nvcomp) | ||
add_library(nvcomp::nvcomp ALIAS nvcomp) | ||
endif() | ||
|
||
endfunction() | ||
|
||
set(CUDF_MIN_VERSION_nvCOMP 2.1.0) | ||
|
||
find_and_configure_nvcomp(${CUDF_MIN_VERSION_nvCOMP}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.