openEuler安装CUDA驱动程序
系统安装cudn驱动
1、lspci | grep NVIDIA

这里结果中的“00:”前缀,表示该显卡是虚拟机上挂载的显卡。
2、nvidia-smi
查看是否存在,命令无效证明没有安装
3、lsmod | grep nouveau
![]()
没有内容证明不要进行禁止,如果有内容就需要直行下面第4步进行禁止,避免与官方驱动产生冲突;
4、vim /etc/modprobe.d/blacklist-nouveau.conf
把以下内容添加至文件最后,然后进行保存:wq!
blacklist nouveau
options nouveau modeset=0
5、dracut --force
6、reboot进行重启之后再输入lsmod | grep nouveau看看是否禁用成功
7、下载驱动下载 NVIDIA 官方驱动 | NVIDIA

8、./NVIDIA-Linux-x86_64-550.90.12.run --kernel-source-path=/usr/src/kernels/6.6.0-46.0.0.51.oe2403.x86_64/ -no-x-check 执行命令,记住一定要把NVIDIA-Linux-x86_64-550.90.12.run给于执行权限。
9、安装过程中选择
1、问题:Would you like to register the kernel module souces with DKMS? This will allow DKMS to automatically build a new module, if you install a different kernel later? 选择 No 继续。
2、问题:Nvidia’s 32-bit compatibility libraries? 选择 No 继续。
3、问题:The distribution-provided pre-install script failed! Are you sure you want to continue? 选择 yes 继续。
4、问题:Would you like to run the nvidia-xconfigutility to automatically update your x configuration so that the NVIDIA x driver will be used when you restart x? Any pre-existing x confile will be backed up. 选择 Yes 继续
5、问题:WARNING: nvidia-installer was forced to guess the X library path '/usr/lib64' and X module path '/usr/lib64/xorg/modules'; these paths were not queryable from the system. If X fails to find the NVIDIA X driver module, please install the `pkg-config` utility and the X.Org SDK/development package for your distribution and reinstall the driver. 选择ok继续
只要是只有OK按钮的只能回车就行,需要选择YES或者NO的请看上面的总结,其他在遇到奇葩的就查百度了。祝君成功
鲲鹏昇腾开发者社区是面向全社会开放的“联接全球计算开发者,聚合华为+生态”的社区,内容涵盖鲲鹏、昇腾资源,帮助开发者快速获取所需的知识、经验、软件、工具、算力,支撑开发者易学、好用、成功,成为核心开发者。
更多推荐


所有评论(0)