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

Add extra requires for cuda/cudnn DLLs to onnxruntime-gpu python package #23659

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tianleiwu
Copy link
Contributor

@tianleiwu tianleiwu commented Feb 12, 2025

Description

Add extra requires for cuda/cudnn DLLs to onnxruntime-gpu python package.

Example to install extra DLLs from wheel:

[ build/Release/dist ]$ pip install onnxruntime_gpu-1.21.0-cp310-cp310-linux_x86_64.whl[cuda] --force-reinstall

The result is like the following:
Successfully installed coloredlogs-15.0.1 flatbuffers-25.2.10 humanfriendly-10.0 mpmath-1.3.0 numpy-2.2.2 nvidia-cublas-cu12-12.8.3.14 nvidia-cuda-runtime-cu12-12.8.57 nvidia-cudnn-cu12-9.7.1.26 nvidia-cufft-cu12-11.3.3.41 nvidia-nvjitlink-cu12-12.8.61 onnxruntime-gpu-1.21.0 packaging-24.2 protobuf-5.29.3 sympy-1.13.3

Example section in METADATA file of dist-info:

Provides-Extra: cuda
Requires-Dist: nvidia-cuda-runtime-cu12~=12.0; extra == "cuda"
Requires-Dist: nvidia-cudnn-cu12~=9.0; extra == "cuda"
Requires-Dist: nvidia-cufft-cu12~=11.0; extra == "cuda"

Motivation and Context

Jian had a PR: #22506. This adds part of the change for testing.

@tianleiwu tianleiwu marked this pull request as draft February 12, 2025 01:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant