Python – Linux/Centos/Ubuntu查看CUDA/cuDNN版本号
本文作者:StubbornHuang
版权声明:本文为站长原创文章,如果转载请注明原文链接!
原文标题:Python – Linux/Centos/Ubuntu查看CUDA/cuDNN版本号
原文链接:https://www.stubbornhuang.com/1387/
发布于:2021年06月11日 20:45:50
修改于:2021年06月11日 20:45:50

1 查看CUDA版本号
低版本使用:
nvcc -v
高版本使用:
nvcc --version
查看CUDA版本号。
2 查看cuDNN版本号
旧版本cuDNN使用以下命令查看版本号:
cat /usr/local/cuda/include/cudnn.h | grep CUDNN_MAJOR -A 2
而高版本的cuDNN的版本号已经不在cudnn.h中了, 而是在cudnn_version.h中,我们也需要将cudnn_version.h拷贝到 /usr/local/cuda/include中,然后再使用以下命令查看:
cat /usr/local/cuda/include/cudnn_version.h | grep CUDNN_MAJOR -A 2
当前分类随机文章推荐
- Python - BeautifulSoup的find()和findAll() 阅读2298次,点赞0次
- Python - 配置Yolov5出现ImportError: cannot import name 'PILLOW_VERSION' from 'PIL'错误 阅读558次,点赞0次
- Python:UnicodeEncodeError: 'gbk' codec can't encode character '\xbb' in position 12305,以及中文乱码的解决方案 阅读2543次,点赞0次
- Python - list与字符串str相互转换方法总结 阅读85次,点赞0次
- Python - ModuleNotFoundError: No module named 'absl' 阅读700次,点赞0次
- Python - 使用Python+websockets时报错:AttributeError: module 'websockets' has no attribute 'serve' 阅读1090次,点赞0次
- Pip - 常用命令(安装,卸载,升级第三方库) 阅读2685次,点赞1次
- Python - 读取视频为numpy数组以及将numpy数组转换为视频 阅读132次,点赞0次
- Python - glob模块详解以及glob.glob、glob.iglob函数的使用 阅读113次,点赞0次
- Python3 - 导入模块和函数 阅读2485次,点赞0次
全站随机文章推荐
- 资源分享 - WebGL Programming Guide - Interactive 3D Graphics Programming with WebGL 英文高清PDF下载 阅读741次,点赞0次
- Duilib - 使Duilib主窗口前置,但是又不是一直作为最顶层窗口 阅读2235次,点赞2次
- 工具网站推荐 - 获取本机外网IP 阅读2026次,点赞0次
- 资源分享 - Learn OpenGL - Learn modern OpenGL graphics programming in a step-by-step fashion 英文高清PDF下载 阅读683次,点赞0次
- WordPress - robots.txt 阅读2076次,点赞0次
- 简单粗暴:使用pycharm安装对应的Python版本第三方包 阅读3007次,点赞0次
- 资源分享 - GPU Zen 1:Advanced Rendering Techniques英文高清PDF下载 阅读5174次,点赞0次
- WordPress - home_url()函数,获取网站主页url链接 阅读377次,点赞0次
- 资源分享 - Fundamentals of Computer Graphics, Fifth Edition 英文高清PDF下载 阅读2749次,点赞0次
- Modern OpenGL - GLSL着色语言3:GLSL中的数据类型 阅读1345次,点赞0次
评论
150