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

torch版本问题导致 cuad加速失败 #588

Open
Killua67 opened this issue Oct 25, 2024 · 0 comments
Open

torch版本问题导致 cuad加速失败 #588

Killua67 opened this issue Oct 25, 2024 · 0 comments

Comments

@Killua67
Copy link

Killua67 commented Oct 25, 2024

出错信息
Could not locate cudnn_ops64_9.dll. Please make sure it is in your library path!
Invalid handle. Cannot load symbol cudnnCreateTensorDescriptor

复现步骤

  1. 使用cpu无问题,勾选CUDA加速报错

操作系统
win11
版本:
nvidia-smi
Fri Oct 25 21:17:42 2024
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 566.03 Driver Version: 566.03 CUDA Version: 12.7 |

nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2023 NVIDIA Corporation
Built on Wed_Nov_22_10:30:42_Pacific_Standard_Time_2023
Cuda compilation tools, release 12.3, V12.3.107
Build cuda_12.3.r12.3/compiler.33567101_0

软件左上角版本号数字
windows 2.9 源码安装

解决方案
因安装教程中限制2.2.0 导致找不到文件,取消限制,安装最新版 2.5.0+cu124 正常使用

pip uninstall -y torch torchaudio
pip install torch torchaudio --index-url https://download.pytorch.org/whl
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

No branches or pull requests

1 participant