ubuntu 显卡驱动/cuda/cudnn
显卡驱动https://www.bilibili.com/video/BV1Zc41137tU/?spm_id_from333.999.0.0vd_sourced75fca5b05d8be06d13cfffd2f4f7ab5使用recommended的驱动open和无open的区别在于无open更适合发挥NVIDIA显卡的全部功能和性能特别是GPU加速计算等任务https://www.nvidia.cn/content/DriverDownloads/confirmation.php?url/XFree86/Linux-x86_64/530.41.03/NVIDIA-Linux-x86_64-530.41.03.runlangustypeTITAN(base)delldell-Precision-3630-Tower:~$ nvidia-detector nvidia-driver-530(base)delldell-Precision-3630-Tower:~$ lspci-v|grep-A1-iVGA00:02.0 VGA compatible controller: Intel Corporation Device 3e9a(rev 02)(prog-if 00[VGA controller])DeviceName: Onboard - Video -- 01:00.0 VGA compatible controller: NVIDIA Corporation Device2504(rev a1)(prog-if 00[VGA controller])Subsystem: ASUSTeK Computer Inc. Device 881d ---------------------------------------------------------------------------- 根据您提供的信息您的计算机上有两个显卡 Intel Corporation Device 3e9a(rev 02)设备名称Onboard - Video这是一块集成的显卡通常用于处理基本图形任务。 NVIDIA Corporation Device2504(rev a1)子系统ASUSTeK Computer Inc. Device 881d这是一块独立的NVIDIA显卡通常用于处理更复杂的图形任务如游戏或图形设计。 请注意Intel的显卡通常被用作计算机的集成显卡而独立显卡如NVIDIA或AMD显卡通常用于提供更高性能的图形处理能力。 计算机上的NVIDIA显卡是NVIDIA Corporation Device 2504 (rev a1)型号是GeForce RTX 3060**因此选择驱动是530 ----------------------------------------------------------------------------(base)delldell-Precision-3630-Tower:/home$find.-nameNVIDIA*./dell/Downloads/NVIDIA-Linux-x86_64-530.41.03.run ./dell/Downloads/NVIDIA-Linux-x86_64-535.54.03.run ./dell/dell-bak/dell/baum/NVIDIA-Linux-x86_64-530.41.03.run ./dell/dell-bak/dell/Downloads/NVIDIA-Linux-x86_64-530.41.03.run ./dell/dell-bak/dell/Documents/NVIDIA Nsight Systems ./dell/dell-bak/dell/anaconda3/lib/python3.10/site-packages/cmake/data/share/cmake-3.25/Modules/Compiler/NVIDIA-DetermineCompiler.cmake ./dell/dell-bak/dell/anaconda3/lib/python3.10/site-packages/cmake/data/share/cmake-3.25/Modules/Compiler/NVIDIA-CUDA.cmake ./dell/dell-bak/dell/anaconda3/pkgs/cudnn-7.6.5.32-h01f27c4_1/info/licenses/NVIDIA_SLA_cuDNN_Support.txt ./dell/dell-bak/dell/anaconda3/pkgs/cudatoolkit-10.2.89-h713d32c_11/info/licenses/NVIDIA_EULA ./dell/dell-bak/dell/anaconda3/pkgs/cudatoolkit-10.2.89-h713d32c_11/info/recipe/NVIDIA_EULA ./dell/a/NVIDIA-Linux-x86_64-525.78.01.run ./dell/a/NVIDIA-Linux-x86_64-515.65.01.run** 修改驱动为530并且nvidia-smi显示重启后的结果如下图cudahttps://developer.nvidia.com/cuda-11-8-0-download-archive?target_osLinuxtarget_archx86_64DistributionUbuntutarget_version20.04target_typerunfile_localhttps://www.bilibili.com/video/BV1bW4y197Mo/?spm_id_from333.788.recommend_more_video.-1vd_sourced75fca5b05d8be06d13cfffd2f4f7ab5wgethttps://developer.download.nvidia.com/compute/cuda/11.8.0/local_installers/cuda_11.8.0_520.61.05_linux.runsudoshcuda_11.8.0_520.61.05_linux.run以上问题是因为以下这步没有把文件下载完全wgethttps://developer.download.nvidia.com/compute/cuda/11.8.0/local_installers/cuda_11.8.0_520.61.05_linux.run 需要路径 /nvme/cudaspacevim~/.bashrcexportTMPDIR/nvme/cudaspaceexportPATH/usr/local/cuda-11.8/bin:${PATH}exportLD_LIBRARY_PATH/usr/local/cuda-11.8/lib64:${LD_LIBRARY_PATH}source~/.bashrc#最后结果(base)delldell-Precision-3630-Tower:~$ nvcc--versionnvcc: NVIDIA(R)Cuda compiler driver Copyright(c)2005-2022 NVIDIA Corporation Built on Wed_Sep_21_10:33:58_PDT_2022 Cuda compilation tools, release11.8, V11.8.89 Build cuda_11.8.r11.8/compiler.31833905_0cudnnhttps://developer.nvidia.com/rdp/cudnn-downloadsudoapt-getinstallzlib1g#下载安装包到downloadsudodpkg-icudnn-local-repo-ubuntu2004-8.9.2.26_1.0-1_amd64.debsudocp/var/cudnn-local-repo-ubuntu2004-8.9.2.26/cudnn-local-6D0A7AE1-keyring.gpg /usr/share/keyrings/sudoapt-getupdate(base)delldell-Precision-3630-Tower:~$sudoapt-getinstalllibcudnn88.9.2.26-1cuda11.8 Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: libcudnn80upgraded,1newly installed,0to remove and15not upgraded. Need to get0B/465 MB of archives. After this operation,1,162MB of additional disk space will be used. Get:1 file:/var/cudnn-local-repo-ubuntu2004-8.9.2.26 libcudnn88.9.2.26-1cuda11.8[465MB]Selecting previously unselected package libcudnn8.(Reading database...207154files and directories currently installed.)Preparing to unpack.../libcudnn8_8.9.2.26-1cuda11.8_amd64.deb... Unpacking libcudnn8(8.9.2.26-1cuda11.8)... Setting up libcudnn8(8.9.2.26-1cuda11.8)...(base)delldell-Precision-3630-Tower:~$sudoapt-getinstalllibcudnn8-dev8.9.2.26-1cuda11.8 Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: libcudnn8-dev0upgraded,1newly installed,0to remove and15not upgraded. Need to get0B/455 MB of archives. After this operation,1,348MB of additional disk space will be used. Get:1 file:/var/cudnn-local-repo-ubuntu2004-8.9.2.26 libcudnn8-dev8.9.2.26-1cuda11.8[455MB]Selecting previously unselected package libcudnn8-dev.(Reading database...207171files and directories currently installed.)Preparing to unpack.../libcudnn8-dev_8.9.2.26-1cuda11.8_amd64.deb... Unpacking libcudnn8-dev(8.9.2.26-1cuda11.8)... Setting up libcudnn8-dev(8.9.2.26-1cuda11.8)... update-alternatives: using /usr/include/x86_64-linux-gnu/cudnn_v8.h to provide /usr/include/cudnn.h(libcudnn)inauto mode(base)delldell-Precision-3630-Tower:~$sudoapt-getinstalllibcudnn8-samples8.9.2.26-1cuda11.8 Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: libcudnn8-samples0upgraded,1newly installed,0to remove and15not upgraded. Need to get0B/1,665 kB of archives. After this operation,2,169kB of additional disk space will be used. Get:1 file:/var/cudnn-local-repo-ubuntu2004-8.9.2.26 libcudnn8-samples8.9.2.26-1cuda11.8[1,665kB]Selecting previously unselected package libcudnn8-samples.(Reading database...207204files and directories currently installed.)Preparing to unpack.../libcudnn8-samples_8.9.2.26-1cuda11.8_amd64.deb... Unpacking libcudnn8-samples(8.9.2.26-1cuda11.8)... Setting up libcudnn8-samples(8.9.2.26-1cuda11.8)...#验证安装成功$cp-r/usr/src/cudnn_samples_v8/$HOME$cd$HOME/cudnn_samples_v8/mnistCUDNN$makecleanmake#出现以下问题base)delldell-Precision-3630-Tower:~/cudnn_samples_v8/mnistCUDNN$makecleanmakerm-rf*orm-rfmnistCUDNN CUDA_VERSION is11080Linking agains cublasLttrueCUDA VERSION:11080TARGET ARCH: x86_64 HOST_ARCH: x86_64 TARGET OS: linux SMS:35505360616270727580868790test.c:1:10: fatal error: FreeImage.h: No suchfileor directory1|#include FreeImage.h|^~~~~~~~~~~~~ compilation terminated.WARNING - FreeImage is notsetup correctly. Please ensure FreeImage issetup correctly.[]/usr/local/cuda/bin/nvcc -I/usr/local/cuda/include -I/usr/local/cuda/include -IFreeImage/include-ccbing-m64-gencodearchcompute_35,codesm_35-gencodearchcompute_50,codesm_50-gencodearchcompute_53,codesm_53-gencodearchcompute_60,codesm_60-gencodearchcompute_61,codesm_61-gencodearchcompute_62,codesm_62-gencodearchcompute_70,codesm_70-gencodearchcompute_72,codesm_72-gencodearchcompute_75,codesm_75-gencodearchcompute_80,codesm_80-gencodearchcompute_86,codesm_86-gencodearchcompute_87,codesm_87-gencodearchcompute_90,codesm_90-gencodearchcompute_90,codecompute_90-ofp16_dev.o-cfp16_dev.cu[]g -I/usr/local/cuda/include -I/usr/local/cuda/include -IFreeImage/include-ofp16_emu.o-cfp16_emu.cpp[]g -I/usr/local/cuda/include -I/usr/local/cuda/include -IFreeImage/include-omnistCUDNN.o-cmnistCUDNN.cpp[]/usr/local/cuda/bin/nvcc-ccbing-m64-gencodearchcompute_35,codesm_35-gencodearchcompute_50,codesm_50-gencodearchcompute_53,codesm_53-gencodearchcompute_60,codesm_60-gencodearchcompute_61,codesm_61-gencodearchcompute_62,codesm_62-gencodearchcompute_70,codesm_70-gencodearchcompute_72,codesm_72-gencodearchcompute_75,codesm_75-gencodearchcompute_80,codesm_80-gencodearchcompute_86,codesm_86-gencodearchcompute_87,codesm_87-gencodearchcompute_90,codesm_90-gencodearchcompute_90,codecompute_90-omnistCUDNN fp16_dev.o fp16_emu.o mnistCUDNN.o -I/usr/local/cuda/include -I/usr/local/cuda/include -IFreeImage/include -L/usr/local/cuda/lib64 -L/usr/local/cuda/lib64 -L/usr/local/cuda/lib64-lcublasLt-LFreeImage/lib/linux/x86_64 -LFreeImage/lib/linux-lcudart-lcublas-lcudnn-lfreeimage-lstdc-lm$sudoapt-getinstalllibfreeimage3 libfreeimage-dev $./mnistCUDNN#以上输出为以下则安装成功... Result of classification:135Test passed!

相关新闻

双目视觉测牛体尺:从相机标定到三维重建的落地全流程

双目视觉测牛体尺:从相机标定到三维重建的落地全流程

/* MD / 富文本中的 .toc(含博客园搬家等嵌套结构);.toc-box 在侧栏,不受影响 */#content_views .toc,/* 编辑器常在目录前后插入空 p(:empty 仍占 20px),一并去掉避免顶空隙 */#content_views.markdown_views > p:empty:has(+ .toc),#content_views.markdown_views …

2026/10/10 5:05:26 阅读更多 →
PCA9422+MKV42F128构建软硬协同电源管理系统

PCA9422+MKV42F128构建软硬协同电源管理系统

/* MD / 富文本中的 .toc(含博客园搬家等嵌套结构);.toc-box 在侧栏,不受影响 */#content_views .toc,/* 编辑器常在目录前后插入空 p(:empty 仍占 20px),一并去掉避免顶空隙 */#content_views.markdown_views > p:empty:has(+ .toc),#content_views.markdown_views …

2026/10/10 5:05:26 阅读更多 →
PCA9422与PIC18F4525打造便携设备电源管理方案

PCA9422与PIC18F4525打造便携设备电源管理方案

/* MD / 富文本中的 .toc(含博客园搬家等嵌套结构);.toc-box 在侧栏,不受影响 */#content_views .toc,/* 编辑器常在目录前后插入空 p(:empty 仍占 20px),一并去掉避免顶空隙 */#content_views.markdown_views > p:empty:has(+ .toc),#content_views.markdown_views …

2026/10/10 5:05:26 阅读更多 →

最新新闻

杨幂×Prada:顶奢代言背后的选人逻辑与商业价值拆解

杨幂×Prada:顶奢代言背后的选人逻辑与商业价值拆解

关于杨幂成为Prada代言人这件事,圈内讨论热度一直没停过。不管是时装周前排看秀的镜头,还是广告大片释放出的状态,都让“顶奢代言”这个概念在当下的内娱市场里有了更具体的参照物。借着这个热点,我想认真聊聊这背后的逻辑&#x…

2026/10/10 5:46:40 阅读更多 →
Unison 语言中 Term 声明禁止携带哈希限定名:语法规则、解析器实现与转写测试验证

Unison 语言中 Term 声明禁止携带哈希限定名:语法规则、解析器实现与转写测试验证

编程语言编译器语言运行时开发工具 【免费下载链接】unison A friendly programming language from the future 项目地址: https://gitcode.com/gh_mirrors/un/unison 点击查看 免费下载 本文以 Unison 开源仓库中的转写(transcript)测试文档…

2026/10/10 5:46:40 阅读更多 →
PCA9422+STM32F405RG电源管理实战:寄存器配置与调试全解析

PCA9422+STM32F405RG电源管理实战:寄存器配置与调试全解析

/* MD / 富文本中的 .toc(含博客园搬家等嵌套结构);.toc-box 在侧栏,不受影响 */#content_views .toc,/* 编辑器常在目录前后插入空 p(:empty 仍占 20px),一并去掉避免顶空隙 */#content_views.markdown_views > p:empty:has(+ .toc),#content_views.markdown_views …

2026/10/10 5:46:40 阅读更多 →
有效信息是博文生成的核心要素

有效信息是博文生成的核心要素

您提供的信息中没有有效的项目标题(当前显示为“无标题”),且相关热搜词和网络搜索内容均为空白。缺少核心输入,我无法生成围绕具体主题、场景和关键词展开的高质量原创博文。《无标题》不是一个可执行的项目主题,强行…

2026/10/10 5:46:40 阅读更多 →
colorlog 6.10.1 使用指南:为 Python 标准库 logging 接入 ANSI 彩色终端输出

colorlog 6.10.1 使用指南:为 Python 标准库 logging 接入 ANSI 彩色终端输出

【免费下载链接】context-hub 项目地址: https://gitcode.com/gh_mirrors/co/context-hub 点击查看 免费下载 导读 colorlog 是一个轻量的 Python 第三方库,它的作用是为 Python 标准库 logging 的处理器(handler)增加 ANSI 颜色…

2026/10/10 5:46:40 阅读更多 →
缩短招聘周期:从人才画像到Offer的11个高效策略

缩短招聘周期:从人才画像到Offer的11个高效策略

招聘周期拉长,用人部门催、候选人等不起、HR夹在中间两头受气——这是过去几年我在各类企业里反复看到的真实场面。尤其遇到急招岗位,从职位发布到人选入职动辄拖上三四十天,错过业务窗口不说,还经常出现“谈好的Offer被对手截胡”…

2026/10/10 5:45:40 阅读更多 →

日新闻

卫星轨道分类全解析:从LEO到GEO的选型逻辑与工程实践

卫星轨道分类全解析:从LEO到GEO的选型逻辑与工程实践

1. 从“卫星轨道分类”这个标题说起:为什么值得花时间搞懂第一次接触“卫星轨道分类”这个概念,很多人会觉得它离自己很远——不就是天上的星星怎么转吗?但如果你正在做航天任务规划、遥感数据接收、星座设计,甚至只是准备一场航天…

2026/10/10 0:00:39 阅读更多 →
Spring AOP 核心原理与实战:从概念到日志切面落地

Spring AOP 核心原理与实战:从概念到日志切面落地

1. 从一个真实痛点说起:为什么你的代码里到处都是重复逻辑刚入行那会儿,我写过一个用户管理模块,注册、登录、改密码、注销四个接口。每个接口里都塞了几乎一样的日志打印、参数校验、事务开启和提交。当时觉得没什么,能跑就行。直…

2026/10/10 0:00:40 阅读更多 →
Python招聘数据采集与分析可视化:从采集清洗到薪资技能城市可视化全链路

Python招聘数据采集与分析可视化:从采集清洗到薪资技能城市可视化全链路

简介:这是一套面向计算机相关专业学生与项目实战学习者的Python数据采集与分析可视化完整项目,以Boss直聘岗位数据为对象,适合用作毕业设计、课程设计或期末大作业。资源包共38个文件,约246KB,以13个py源码文件为核心&…

2026/10/10 0:00:40 阅读更多 →

周新闻

KT148A语音芯片外挂8002D功放的工程实践指南

KT148A语音芯片外挂8002D功放的工程实践指南

/* MD / 富文本中的 .toc(含博客园搬家等嵌套结构);.toc-box 在侧栏,不受影响 */#content_views .toc,/* 编辑器常在目录前后插入空 p(:empty 仍占 20px),一并去掉避免顶空隙 */#content_views.markdown_views > p:empty:has(+ .toc),#content_views.markdown_views …

2026/10/8 15:26:32 阅读更多 →
LLC谐振变换器增益公式推导:从FHA等效到完整归一化表达式

LLC谐振变换器增益公式推导:从FHA等效到完整归一化表达式

/* MD / 富文本中的 .toc(含博客园搬家等嵌套结构);.toc-box 在侧栏,不受影响 */#content_views .toc,/* 编辑器常在目录前后插入空 p(:empty 仍占 20px),一并去掉避免顶空隙 */#content_views.markdown_views > p:empty:has(+ .toc),#content_views.markdown_views …

2026/10/10 1:36:08 阅读更多 →
ARM架构深度解析:从RISC设计理念到交叉编译实战

ARM架构深度解析:从RISC设计理念到交叉编译实战

/* MD / 富文本中的 .toc(含博客园搬家等嵌套结构);.toc-box 在侧栏,不受影响 */#content_views .toc,/* 编辑器常在目录前后插入空 p(:empty 仍占 20px),一并去掉避免顶空隙 */#content_views.markdown_views > p:empty:has(+ .toc),#content_views.markdown_views …

2026/10/9 10:11:06 阅读更多 →

月新闻

我发现了一个新思路:用 Remotion + Claude Code 像写代码一样自动化生成短视频

我发现了一个新思路:用 Remotion + Claude Code 像写代码一样自动化生成短视频

/* MD / 富文本中的 .toc(含博客园搬家等嵌套结构);.toc-box 在侧栏,不受影响 */#content_views .toc,/* 编辑器常在目录前后插入空 p(:empty 仍占 20px),一并去掉避免顶空隙 */#content_views.markdown_views > p:empty:has(+ .toc),#content_views.markdown_views …

2026/10/10 5:23:50 阅读更多 →
Windows下 Codex 中 Chrome 和 Computer Use 插件不可用问题排查及解决参考方式:TaoToken 统一 Key 配置与验证

Windows下 Codex 中 Chrome 和 Computer Use 插件不可用问题排查及解决参考方式:TaoToken 统一 Key 配置与验证

/* MD / 富文本中的 .toc(含博客园搬家等嵌套结构);.toc-box 在侧栏,不受影响 */#content_views .toc,/* 编辑器常在目录前后插入空 p(:empty 仍占 20px),一并去掉避免顶空隙 */#content_views.markdown_views > p:empty:has(+ .toc),#content_views.markdown_views …

2026/10/9 21:32:20 阅读更多 →
黑夜航拍船只数据集训练YOLOV5模型全流程解析

黑夜航拍船只数据集训练YOLOV5模型全流程解析

/* MD / 富文本中的 .toc(含博客园搬家等嵌套结构);.toc-box 在侧栏,不受影响 */#content_views .toc,/* 编辑器常在目录前后插入空 p(:empty 仍占 20px),一并去掉避免顶空隙 */#content_views.markdown_views > p:empty:has(+ .toc),#content_views.markdown_views …

2026/10/9 6:17:20 阅读更多 →