Skip to content

Commit 234a1af

Browse files
authored
Avoid installing CCCL headers in wheels (rapidsai#1692)
Uncompressed size of CCCL headers: 19M No of headers per CCCL library: ``` cudax/include: 208 cub/cub: 172 libcudacxx/include/cuda: 950 thrust/thrust: 729 ``` Before this PR: * compressed size: 0.406G * uncompressed size: 0.452G After this PR: * compressed size: 0.403G * uncompressed size: 0.438G Authors: - Divye Gala (https://github.com/divyegala) Approvers: - Vyas Ramasubramani (https://github.com/vyasr) - Corey J. Nolet (https://github.com/cjnolet) URL: rapidsai#1692
1 parent 67fe5a0 commit 234a1af

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

cpp/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ rapids_cpm_init()
189189
if(NOT BUILD_CPU_ONLY)
190190
# We must find CCCL ourselves before raft so that we get the right version.
191191
include(${rapids-cmake-dir}/cpm/cccl.cmake)
192-
rapids_cpm_cccl(BUILD_EXPORT_SET cuvs-exports INSTALL_EXPORT_SET cuvs-exports)
192+
rapids_cpm_cccl()
193193
include(cmake/thirdparty/get_raft.cmake)
194194
include(cmake/thirdparty/get_cutlass.cmake)
195195
include(${rapids-cmake-dir}/cpm/cuco.cmake)

python/cuvs/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# =============================================================================
22
# cmake-format: off
3-
# SPDX-FileCopyrightText: Copyright (c) 2022-2025, NVIDIA CORPORATION.
3+
# SPDX-FileCopyrightText: Copyright (c) 2022-2026, NVIDIA CORPORATION.
44
# SPDX-License-Identifier: Apache-2.0
55
# cmake-format: on
66
# =============================================================================
@@ -36,7 +36,7 @@ include(rapids-find)
3636
rapids_cpm_init()
3737

3838
# --- cuVS ---#
39-
find_package(cuvs "${RAPIDS_VERSION}" REQUIRED COMPONENTS c_api)
39+
find_package(cuvs "${RAPIDS_VERSION}" REQUIRED COMPONENTS cuvs_cpp_headers cuvs cuvs_shared c_api)
4040

4141
# --- dlpack ---#
4242
include(../../cpp/cmake/thirdparty/get_dlpack.cmake)

python/libcuvs/pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-FileCopyrightText: Copyright (c) 2025, NVIDIA CORPORATION.
1+
# SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION.
22
# SPDX-License-Identifier: Apache-2.0
33

44
[build-system]
@@ -69,6 +69,7 @@ sdist.reproducible = true
6969
wheel.install-dir = "libcuvs"
7070
wheel.packages = ["libcuvs"]
7171
wheel.py-api = "py3"
72+
install.components = ["cuvs_cpp_headers", "cuvs", "cuvs_shared", "c_api", "hnswlib"]
7273

7374
[tool.scikit-build.metadata.version]
7475
provider = "scikit_build_core.metadata.regex"

0 commit comments

Comments
 (0)