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] Failed when build with cuda #23246

Closed
ZhangWei125521 opened this issue Jan 3, 2025 · 3 comments
Closed

[Build] Failed when build with cuda #23246

ZhangWei125521 opened this issue Jan 3, 2025 · 3 comments
Labels
build build issues; typically submitted using template ep:CUDA issues related to the CUDA execution provider

Comments

@ZhangWei125521
Copy link

Describe the issue

It always occur error even though I have copy the cudnn lib and include files into the cuda path("/usr/local/cuda/").
the failed file: "onnxruntime/contrib_ops/cuda/bert/cudnn_fmha/cudnn_flash_attention.cu.o".
Image

Urgency

No response

Target platform

Ubuntu

Build script

./build.sh --use_cuda --config Debug --cuda_home /usr/local/cuda/ --cudnn_home /usr/local/cuda/

Error / output

the detail error in the attached image

Visual Studio Version

No response

GCC / Compiler Version

No response

@ZhangWei125521 ZhangWei125521 added the build build issues; typically submitted using template label Jan 3, 2025
@github-actions github-actions bot added the ep:CUDA issues related to the CUDA execution provider label Jan 3, 2025
@xiaoyu-work
Copy link
Contributor

You could download cudnn separately and specify cudnn path in the build command:

wget  https://developer.download.nvidia.com/compute/cudnn/redist/cudnn/linux-x86_64/cudnn-linux-x86_64-9.6.0.74_cuda12-archive.tar.xz 
mkdir $HOME/cudnn9.6 
tar -Jxvf cudnn-linux-x86_64-9.6.0.74_cuda12-archive.tar.xz  -C $HOME/cudnn9.6 --strip=1  --no-overwrite-dir 

@ZhangWei125521
Copy link
Author

You could download cudnn separately and specify cudnn path in the build command:

wget  https://developer.download.nvidia.com/compute/cudnn/redist/cudnn/linux-x86_64/cudnn-linux-x86_64-9.6.0.74_cuda12-archive.tar.xz 
mkdir $HOME/cudnn9.6 
tar -Jxvf cudnn-linux-x86_64-9.6.0.74_cuda12-archive.tar.xz  -C $HOME/cudnn9.6 --strip=1  --no-overwrite-dir 

Many thanks for your repy, but it seems not cudnn issue. In the same env, I can compile version 1.18.1 successful, Now I use this version production

@xiaoyu-work
Copy link
Contributor

1.18 doesn't need cudnn as a mandatory requirement. Glad it works for you now. Feel free to reopen this issue if you have more questions.

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

2 participants