File tree Expand file tree Collapse file tree 5 files changed +47
-13
lines changed Expand file tree Collapse file tree 5 files changed +47
-13
lines changed Original file line number Diff line number Diff line change @@ -5,11 +5,15 @@ set -euo pipefail
5
5
6
6
package_dir=" python/libcudf"
7
7
8
+ export SKBUILD_CMAKE_ARGS=" -DUSE_NVCOMP_RUNTIME_WHEEL=ON"
8
9
./ci/build_wheel.sh ${package_dir}
9
10
10
11
RAPIDS_PY_CUDA_SUFFIX=" $( rapids-wheel-ctk-name-gen ${RAPIDS_CUDA_VERSION} ) "
11
12
12
13
mkdir -p ${package_dir} /final_dist
13
- python -m auditwheel repair -w ${package_dir} /final_dist ${package_dir} /dist/*
14
+ python -m auditwheel repair \
15
+ --exclude libnvcomp.so.4 \
16
+ -w ${package_dir} /final_dist \
17
+ ${package_dir} /dist/*
14
18
15
19
RAPIDS_PY_WHEEL_NAME=" libcudf_${RAPIDS_PY_CUDA_SUFFIX} " rapids-upload-wheels-to-s3 cpp ${package_dir} /final_dist
Original file line number Diff line number Diff line change 1
1
# =============================================================================
2
- # Copyright (c) 2021-2022 , NVIDIA CORPORATION.
2
+ # Copyright (c) 2021-2024 , NVIDIA CORPORATION.
3
3
#
4
4
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
5
5
# in compliance with the License. You may obtain a copy of the License at
16
16
function (find_and_configure_nvcomp )
17
17
18
18
include (${rapids-cmake-dir}/cpm/nvcomp.cmake )
19
- rapids_cpm_nvcomp (
20
- BUILD_EXPORT_SET cudf-exports
21
- INSTALL_EXPORT_SET cudf-exports
22
- USE_PROPRIETARY_BINARY ${CUDF_USE_PROPRIETARY_NVCOMP}
23
- )
19
+ rapids_cpm_nvcomp (USE_PROPRIETARY_BINARY ${CUDF_USE_PROPRIETARY_NVCOMP} )
24
20
25
21
# Per-thread default stream
26
22
if (TARGET nvcomp AND CUDF_USE_PER_THREAD_DEFAULT_STREAM )
Original file line number Diff line number Diff line change 15
15
- depends_on_cupy
16
16
- depends_on_libkvikio
17
17
- depends_on_librmm
18
+ - depends_on_nvcomp
18
19
- depends_on_rmm
19
20
- develop
20
21
- docs
@@ -152,6 +153,13 @@ files:
152
153
- build_cpp
153
154
- depends_on_libkvikio
154
155
- depends_on_librmm
156
+ py_run_libcudf :
157
+ output : pyproject
158
+ pyproject_dir : python/libcudf
159
+ extras :
160
+ table : project
161
+ includes :
162
+ - depends_on_nvcomp
155
163
py_build_pylibcudf :
156
164
output : pyproject
157
165
pyproject_dir : python/pylibcudf
@@ -367,9 +375,27 @@ dependencies:
367
375
- fmt>=11.0.2,<12
368
376
- flatbuffers==24.3.25
369
377
- librdkafka>=2.5.0,<2.6.0a0
378
+ - spdlog>=1.14.1,<1.15
379
+ depends_on_nvcomp :
380
+ common :
381
+ - output_types : conda
382
+ packages :
370
383
# Align nvcomp version with rapids-cmake
371
384
- nvcomp==4.0.1
372
- - spdlog>=1.14.1,<1.15
385
+ specific :
386
+ - output_types : [requirements, pyproject]
387
+ matrices :
388
+ - matrix :
389
+ cuda : " 12.*"
390
+ packages :
391
+ - nvidia-nvcomp-cu12==4.0.1
392
+ - matrix :
393
+ cuda : " 11.*"
394
+ packages :
395
+ - nvidia-nvcomp-cu11==4.0.1
396
+ - matrix :
397
+ packages :
398
+ - nvidia-nvcomp==4.0.1
373
399
rapids_build_skbuild :
374
400
common :
375
401
- output_types : [conda, requirements, pyproject]
Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ project(
22
22
LANGUAGES CXX
23
23
)
24
24
25
+ option (USE_NVCOMP_RUNTIME_WHEEL "Use the nvcomp wheel at runtime instead of the system library" OFF )
26
+
25
27
# Check if cudf is already available. If so, it is the user's responsibility to ensure that the
26
28
# CMake package is also available at build time of the Python cudf package.
27
29
find_package (cudf "${RAPIDS_VERSION} " )
@@ -45,8 +47,11 @@ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib)
45
47
46
48
add_subdirectory (../../cpp cudf-cpp )
47
49
48
- # Ensure other libraries needed by libcudf.so get installed alongside it.
49
- include (cmake/Modules/WheelHelpers.cmake )
50
- install_aliased_imported_targets (
51
- TARGETS cudf nvcomp::nvcomp DESTINATION ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}
52
- )
50
+ if (USE_NVCOMP_RUNTIME_WHEEL )
51
+ set (rpaths "$ORIGIN/../../nvidia/nvcomp" )
52
+ set_property (
53
+ TARGET cudf
54
+ PROPERTY INSTALL_RPATH ${rpaths}
55
+ APPEND
56
+ )
57
+ endif ()
Original file line number Diff line number Diff line change @@ -37,6 +37,9 @@ classifiers = [
37
37
" Programming Language :: C++" ,
38
38
" Environment :: GPU :: NVIDIA CUDA" ,
39
39
]
40
+ dependencies = [
41
+ " nvidia-nvcomp==4.0.1" ,
42
+ ] # This list was generated by `rapids-dependency-file-generator`. To make changes, edit ../../dependencies.yaml and run `rapids-dependency-file-generator`.
40
43
41
44
[project .urls ]
42
45
Homepage = " https://github.com/rapidsai/cudf"
You can’t perform that action at this time.
0 commit comments