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

[Build] Support CUDA 12 onnxruntime-gpu pypi package #20745

Open
circuluspibo opened this issue May 21, 2024 · 9 comments
Open

[Build] Support CUDA 12 onnxruntime-gpu pypi package #20745

circuluspibo opened this issue May 21, 2024 · 9 comments
Assignees
Labels
build build issues; typically submitted using template ep:CUDA issues related to the CUDA execution provider

Comments

@circuluspibo
Copy link

circuluspibo commented May 21, 2024

Describe the issue

It seems to support cuda 12 at py3.9 but 3.10 and 3.11 seems to be cuda 11.8

Urgency

No response

Target platform

ubuntu2204

Build script

.

Error / output

.

Visual Studio Version

No response

GCC / Compiler Version

No response

@circuluspibo circuluspibo added the build build issues; typically submitted using template label May 21, 2024
@github-actions github-actions bot added the ep:CUDA issues related to the CUDA execution provider label May 21, 2024
@tianleiwu
Copy link
Contributor

@circuluspibo, could you try install cuda 12 package according to https://onnxruntime.ai/docs/install/

@aashaypm
Copy link

Jumping in, @tianleiwu I don't see version 1.18 on here. Anyway, I did follow the method mentioned on the install page, and I get the following error when trying to use the library:

2024-05-22 16:59:06.850388755 [E:onnxruntime:Default, provider_bridge_ort.cc:1744 TryGetProviderInfo_CUDA] /onnxruntime_src/onnxruntime/cor
e/session/provider_bridge_ort.cc:1426 onnxruntime::Provider& onnxruntime::ProviderLibrary::Get() [ONNXRuntimeError] : 1 : FAIL : Failed to 
load library libonnxruntime_providers_cuda.so with error: libcublasLt.so.11: cannot open shared object file: No such file or directory  

Which makes me think the CUDA 11 compatible version was installed even after running pip install onnxruntime-gpu --extra-index-url https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/onnxruntime-cuda-12/pypi/simple/

@snnn
Copy link
Member

snnn commented May 23, 2024

@yihonglyu , please help publish CUDA 12 python & nuget packages there.

@circuluspibo
Copy link
Author

circuluspibo commented May 23, 2024

@tianleiwu as aashaypm mentioned, only installed 1.18 with cuda 11.8 only....

https://aiinfra.visualstudio.com/PublicPackages/_artifacts/feed/onnxruntime-cuda-12

If you check this site, only support 1.17.1, can't find 1.18 for cuda 12 (seems to supoort only onnxruntime-training at cuda 12)

@NarutoUA
Copy link

#20409

@dbuades
Copy link

dbuades commented May 29, 2024

Same issue here. 1.18 package is missing from https://aiinfra.visualstudio.com/PublicPackages/_artifacts/feed/onnxruntime-cuda-12

@typon
Copy link

typon commented May 30, 2024

Running into the same issue.

For people Googling a fix:

pip install onnxruntime-gpu --extra-index-url https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/onnxruntime-cuda-12/pypi/simple

Will install onnxruntime-gpu==1.18.0 which has libraries built for CUDA 11!

  1. To fix this, please install like this:
 pip install --no-cache-dir onnxruntime-gpu==1.17.1 --extra-index-url https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/onnxruntime-cuda-12/pypi/simple

This will allow use with CUDA 12

@snnn
Copy link
Member

snnn commented May 30, 2024

Should be "-i" instead of "--extra-index-url". You should not have the "extra" there.

python -m pip install  -i https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/onnxruntime-cuda-12/pypi/simple/ onnxruntime-gpu

@dbuades
Copy link

dbuades commented Jun 10, 2024

Update

1.18.0 is now available. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build build issues; typically submitted using template ep:CUDA issues related to the CUDA execution provider
Projects
None yet
Development

No branches or pull requests

8 participants