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

[CUDA] Not link CUDNN sub libs #23656

Merged
merged 2 commits into from
Feb 12, 2025
Merged

[CUDA] Not link CUDNN sub libs #23656

merged 2 commits into from
Feb 12, 2025

Conversation

tianleiwu
Copy link
Contributor

@tianleiwu tianleiwu commented Feb 11, 2025

Description

Do not link cuDNN sub libs.

Before:

 objdump -p libonnxruntime_providers_cuda.so | grep NEEDED
  NEEDED               libcublasLt.so.12
  NEEDED               libcublas.so.12
  NEEDED               libcurand.so.10
  NEEDED               libcufft.so.11
  NEEDED               libcudart.so.12
  NEEDED               libcudnn.so.9
  NEEDED               libcudnn_adv.so.9
  NEEDED               libcudnn_ops.so.9
  NEEDED               libcudnn_cnn.so.9
  NEEDED               libcudnn_graph.so.9
  NEEDED               libcudnn_engines_runtime_compiled.so.9
  NEEDED               libcudnn_engines_precompiled.so.9
  NEEDED               libcudnn_heuristic.so.9
  NEEDED               libdl.so.2
  NEEDED               librt.so.1
  NEEDED               libnvrtc.so.12
  NEEDED               libpthread.so.0
  NEEDED               libstdc++.so.6
  NEEDED               libm.so.6
  NEEDED               libgcc_s.so.1
  NEEDED               libc.so.6
  NEEDED               ld-linux-x86-64.so.2

After:

$ objdump -p libonnxruntime_providers_cuda.so | grep NEEDED
  NEEDED               libcublasLt.so.12
  NEEDED               libcublas.so.12
  NEEDED               libcurand.so.10
  NEEDED               libcufft.so.11
  NEEDED               libcudart.so.12
  NEEDED               libcudnn.so.9
  NEEDED               libnvrtc.so.12
  NEEDED               libstdc++.so.6
  NEEDED               libm.so.6
  NEEDED               libgcc_s.so.1
  NEEDED               libc.so.6
  NEEDED               ld-linux-x86-64.so.2

Motivation and Context

Avoid direct dependency on cuDNN sub libraries, which were introduced in #19470.

#23643

@tianleiwu tianleiwu marked this pull request as draft February 11, 2025 23:34
@tianleiwu tianleiwu marked this pull request as ready for review February 12, 2025 02:16
@tianleiwu tianleiwu requested review from snnn and yf711 February 12, 2025 02:25
@tianleiwu tianleiwu merged commit bc04e81 into main Feb 12, 2025
110 of 119 checks passed
@tianleiwu tianleiwu deleted the tlwu/update_cudnn_link_libs branch February 12, 2025 23:03
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.

2 participants