几天前我安装了全新的 Ubuntu 20.04。
现在我想设置 SLI。所以我插入了第二个 GPU 和 SLI 桥:
为了启用 SLI,我运行了以下命令
sudo nvidia-xconfig --sli=on
现在的输出cat /etc/X11/xorg.conf
是:
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 440.64
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 440.64
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
Option "Xinerama" "0"
EndSection
Section "Files"
EndSection
Section "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
# generated from default
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "BenQ EX3501R"
HorizSync 28.0 - 155.0
VertRefresh 48.0 - 100.0
Option "DPMS"
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce GTX 970"
EndSection
Section "Screen"
# Removed Option "SLI" "on"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "Stereo" "0"
Option "nvidiaXineramaInfoOrder" "DFP-1"
Option "metamodes" "3440x1440_100 +0+0"
Option "MultiGPU" "Off"
Option "BaseMosaic" "off"
Option "SLI" "AFR"
SubSection "Display"
Depth 24
EndSubSection
EndSection
两种 GPU 均能被 NVIDIA X 服务器设置识别
但即使重启后,SLI 似乎也没有启用。当我执行 GPU 密集型任务时,GPU Utilization
GPU 0 的比率会增加,但 GPU 1 的比率保持在 0%。
GPU 0
GPU 1
这是我的系统信息
SLI 桥
答案1
尝试
sudo nvidia-xconfig -sli = on -multigpu = on
或者
sudo nvidia-xconfig -sli = auto -multigpu = auto