Skip to content

NVIDIA(CUDA) driver for ROS2GO

Compare
Choose a tag to compare
@auok9527 auok9527 released this 20 Oct 03:52
a7a7e00

⚠️ 本驱动仅为兼容 ROS2GO 打包,勿在其他系统尝试;20241019以后发布的 ROS2GO 已内置该驱动,无需重装。

安装步骤:

⚠️当前系统gcc版本必须严格为Ubuntu 9.4.0-1ubuntu1~20.04.3,查看方法gcc --version

输出如下:

gcc (Ubuntu 9.4.0-1ubuntu1~20.04.3) 9.4.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  1. 必须安装我们发布的最新版本内核、固件,装完必须重启以最新内核进入系统
  2. 下载&解压:tar -I zstd -xvf NVIDIA-Linux-x86_64-555.42.06.tar.zst
  3. 进目录执行安装:cd NVIDIA-Linux-x86_64-555.42.06 && ./nvidia-installer
  4. 按照脚本指示一路默认即可
  5. 屏蔽开源驱动:将blacklist nouveau添加到/etc/modprobe.d/blacklist.conf文件内
  6. 重启
  7. 验证:nvidia-smi 能看到显卡信息,类似下面的输出:
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI xxx              Driver Version: yyy      CUDA Version: zzz    |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce RTX 3050 ...    Off |   00000000:01:00.0 Off |                  N/A |
| N/A   37C    P0             10W /   60W |      15MiB /   4096MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+

+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI        PID   Type   Process name                              GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A       906      G   /usr/lib/Xorg                                   4MiB |
+-----------------------------------------------------------------------------------------+