首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >CuDNN版本不匹配

CuDNN版本不匹配
EN

Stack Overflow用户
提问于 2018-11-28 09:14:53
回答 1查看 712关注 0票数 2

我非常接近使用keras/tensorflow python库来配置启用了gpu的环境。当我尝试训练我的模型时,我得到了一条很长的错误消息:

代码语言:javascript
复制
2018-11-27 18:34:47.776387: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1511] Adding visible gpu devices: 0
2018-11-27 18:34:48.769258: I tensorflow/core/common_runtime/gpu/gpu_device.cc:982] Device interconnect StreamExecutor with strength 1 edge matrix:
2018-11-27 18:34:48.769471: I tensorflow/core/common_runtime/gpu/gpu_device.cc:988]      0 
2018-11-27 18:34:48.769595: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1001] 0:   N 
2018-11-27 18:34:48.769825: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1115] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 3024 MB memory) -> physical GPU (device: 0, name: GeForce GTX 1050, pci bus id: 0000:01:00.0, compute capability: 6.1)
2018-11-27 18:34:50.405201: E tensorflow/stream_executor/cuda/cuda_dnn.cc:363] Loaded runtime CuDNN library: 7.1.4 but source was compiled with: 7.2.1.  CuDNN library major and minor version needs to match or have higher minor version in case of CuDNN 7.0 or later version. If using a binary install, upgrade your CuDNN library.  If building from sources, make sure the library loaded at runtime is compatible with the version specified during compile configuration.

我看过几篇类似的堆栈溢出帖子,似乎我需要调整CuDNN版本或tensorflow-gpu版本。我从Nvidia的网站上下载了正确版本的CuDNN,但它似乎没有任何作用。我还发现了几篇关于更改tensorflow-gpu版本的帖子,但我应该下载哪个版本以及如何下载。我使用的是WIndows 10。

EN

回答 1

Stack Overflow用户

发布于 2019-02-21 23:45:37

您好,这个powershell脚本应该可以更新您的驱动程序。

代码语言:javascript
复制
$ur='https://dsvmteststore.blob.core.windows.net/patches/cuda/cudnnpatch.zip?st=2019-02-20T04%3A10%3A00Z&se=2019-03-01T04%3A10%3A00Z&sp=r&sv=2017-07-29&sr=c&sig=w1VqK70ZcWWbbRW2K4Y8q5298dNxBqsoP71%2F4nF6uYM%3D'
Invoke-WebRequest -Uri  $ur  -OutFile '.\cudnnpatch.zip' -UseBasicParsing

$from='.\cudnnpatch.zip'
$to='.\'
cmd /c "c:\7-Zip\7z.exe x $from -o$to -y"


$root='C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0'


$dll='\bin\cudnn64_7.dll' 
$header='\include\cudnn.h' 
$lib='\lib\x64\cudnn.lib' 

$from='.\cuda'
Copy-Item "$from$dll" "$root$dll"  -Force
Copy-Item "$from$header" "$root$header"  -Force
Copy-Item "$from$lib" "$root$lib"  -Force
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/53510644

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档