在K3s中配置使用NVIDIA GPUS
安装 NVIDIA 驱动 略 安装成功后可使用nvidia-smi命令查看驱动版本和 cuda 版本 $ nvidia-smi Thu Oct 12 11:29:15 2023 +-----------------------------------------------------------------------------+ | NVIDIA-SMI 470.161.03 Driver Version: 470.161.03 CUDA Version: 11.4 | |-------------------------------+----------------------+----------------------+ | 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 A10-4Q On | 00000000:00:07.0 Off | N/A | | N/A N/A P0 N/A / N/A | 128MiB / 3932MiB | 0% Default | | | | N/A | +-------------------------------+----------------------+----------------------+ +-----------------------------------------------------------------------------+ | Processes: | | GPU GI CI PID Type Process name GPU Memory | | ID ID Usage | |=============================================================================| | No running processes found | +-----------------------------------------------------------------------------+ 安装 nvidia-container-runtime 添加 Apt 仓库 curl -fsSL https://nvidia....