小编kue*_*ues的帖子

Linux 中的多个 GPU - 如何指定哪个 GPU 运行 X windows

我一直在带有 GTX 480 的系统上运行 Red Hat Enterprise Linux 6.1。最近我添加了一个 3GB GTX 580,因为我的 CUDA 应用程序需要比 480 上更多的内存。由于盒子里的空间问题,我不得不把580放在离CPU最近的PCI-E总线上,把480移到第二个插槽。

现在,当我运行 RHEL 时,X windows 正在 580 上运行。我想要 480 运行 X windows,以便 580 上有完整的 3GB 可用。我只有一台显示器,它只能在连接到 580 时显示; 如果连接到 480 则没有信号。

我探索了几个选项:

  1. 更改 BIOS - 似乎没有任何方法可以在我的 BIOS 上指定主 GPU

  2. 更改 xorg.conf 文件。我跑了nvidia-xconfig -a。我的xorg.conf文件的尾端附在下面。

我认为我可以删除“屏幕”部分之一并让 Screen0 使用 Device1 但这会阻止 X windows 运行。


Section "Device" Identifier "Device0" Driver "nvidia" VendorName "NVIDIA Corporation" BoardName "GeForce GTX 580" BusID "PCI:9:0:0" EndSection    
Section "Device" Identifier "Device1" …
Run Code Online (Sandbox Code Playgroud)

linux cuda x-windows

12
推荐指数
1
解决办法
5199
查看次数

标签 统计

cuda ×1

linux ×1

x-windows ×1