centos 安装cuda cudnn
2021/7/18 7:09:50
本文主要是介绍centos 安装cuda cudnn,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
centos 安装cuda cudnn
#禁用nouveau
[root@localhost cuda] # sudo vim /etc/modprobe.d/blacklist.conf
blacklist nouveau options nouveau modeset=0
[root@localhost cuda]# sudo dracut --force [root@localhost cuda]# reboot # 查询是否成功禁用nouveau 如果没有结果说明禁用成功 [root@localhost cuda]# lsmod |grep nouveau
#cuda下载地址 :https://developer.nvidia.com/cuda-downloads?target_os=Linux&target_arch=x86_64&Distribution=CentOS&target_version=7&target_type=rpm_local
# 查看NVIDIA驱动安装情况 [root@localhost cuda]# nvidia-smi``` ## cudnn 参考文章https://blog.csdn.net/weixin_44607910/article/details/108226292 自身采用的方式 下载完cudnn,tar解压包,然后将解压的文件include,lib64复制到/usr/local/cuda-(你的版本)/include/ usr/local/cuda-(你的版本)/lib64/ # 报错1 error:unable to find the kernel source tree for the currently running kernel. please make sure you have installed the kernel source files for your kernel and that htey are properly configured; on red hat linux system, for example, be sure you have the ‘kernel-source’ or ‘kernel-devel’ RPM installed. if you know the correct kernel source files are installed ,you may specify the kernel source path with the ‘–kernel-source-path’ command line option ```bash # 查询版本号 [root@localhost cuda]# uname -r # yum install -y kernel-devel(对应版本号) [root@localhost cuda]# yum install -y kernel-devel-3.10.0-1160.31.1.el7.x86_64
这篇关于centos 安装cuda cudnn的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-06-30uniAPP 实现全屏左右滚动滚动的效果-icode9专业技术文章分享
- 2024-06-30如何在本地使用授权或插件-icode9专业技术文章分享
- 2024-06-30伪静态规则配置方法汇总-icode9专业技术文章分享
- 2024-06-29易优CMS安装常见问题汇总-icode9专业技术文章分享
- 2024-06-28易优新手必读安装教程-icode9专业技术文章分享
- 2024-06-28忘记eyoucms后台密码怎么办?-icode9专业技术文章分享
- 2024-06-26终极指南:Scrum中如何设置需求优先级
- 2024-06-26AI大模型企业应用实战(25)-为Langchain Agent添加记忆功能
- 2024-06-26小白家庭 nas 搭建方案-icode9专业技术文章分享
- 2024-06-23AI大模型企业应用实战(14)-langchain的Embedding