Skip to content
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

[FEA] reduce libcuvs binary size #735

Open
jameslamb opened this issue Feb 27, 2025 · 0 comments
Open

[FEA] reduce libcuvs binary size #735

jameslamb opened this issue Feb 27, 2025 · 0 comments
Labels
feature request New feature or request

Comments

@jameslamb
Copy link
Member

Is your feature request related to a problem? Please describe.

As of this writing, the latest 25.04 libcuvs wheels have the following sizes:

distribution arch size (compressed) size (uncompressed)
libcuvs-cu11 x86_64 948 MiB 1377 MiB
libcuvs-cu11 aarch64 999 MiB 1378 MiB
libcuvs-cu12 x86_64 1129 MiB 1626 MiB
libcuvs-cu12 aarch64 1128 MiB 1628 MiB

NOTE: v25.4.0a84, latest 25.04 nightly as of Feb 27, 2025

how I got those sizes (click me)

Downloaded wheels from https://pypi.anaconda.org/rapidsai-wheels-nightly/simple/libcuvs-cu12 and https://pypi.anaconda.org/rapidsai-wheels-nightly/simple/libcuvs-cu11.

pydistcheck \
  --inspect \
  --output-file-size-unit Mi \
  --output-file-size-precision 1 \
  --select 'distro-too-large-compressed' \
  ./libcuvs-wheels/*.whl

Such large packages require a relatively large amount of network bandwidth to download and disk space to store.

This issue tracks the work of reducing those sizes.

Describe the solution you'd like

Those package sizes should be reduced. It's tough to say how small is small enough, but the goal "get wheels on pypi.org" provides one set of targets.

PyPI requirements for individual files:

There are also limits for the total size of a project, summed over all releases... so smaller packages = more releases that can be hosted on PyPI.

Describe alternatives you've considered

Some ideas for how to address this:

Additional context

Attaching a report @robertmaynard put together showing the approximate contribution to total binary size of each CUDA kernel in libcuvs.

size.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant