我正在运行 2 个 GPU,并且试图强制 X 服务器在一个 GPU 上运行。根据这个网站: http: //nvidia.custhelp.com/app/answers/detail/a_id/3029/~/using-cuda-and-x,我应该这样做:
应使用 xorg.conf 文件的相关“显示”部分中的 BusID 参数将 X 显示强制到单个 GPU 上。此外,应删除任何其他“显示”部分。例如:总线ID“PCI:34:0:0”
这是我的 xorg.conf 文件:
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 304.64 (buildmeister@swio-display-x86-rhel47-12) Tue Oct 30 12:04:46 PDT 2012
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
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 "Unknown"
HorizSync 28.0 - 33.0
VertRefresh 43.0 - 72.0
Option "DPMS"
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
EndSubSection
EndSection
所以我尝试用正确的 BusID 修改小节显示,但它仍然不起作用,我还尝试将它放在 Device 部分中。
任何人都知道我怎么能做到这一点?