I want to specify which GPU to use for display output in Ubuntu 20.04 with multiple GPU boards

Asked 2 years ago, Updated 2 years ago, 142 views


on a PC with two GeForce GTX 1080Ti and GeForce GT 1030 Ubuntu 20.04.2 LTS has been installed.

I would like to use 1030 for display output and 1080Ti for machine learning.
I don't know how to output the display from 1030.

$lspci|grep VAG results are as follows:

 17:00.0 VGA compatible controller: NVIDIA Corporation GP102 [GeForce GTX 1080 Ti] (reva1)
 65:00.0 VGA compatible controller: NVIDIA Corporation GP102 [GeForce GTX 1080 Ti] (reva1)
 b3:00.0 VGA compatible controller: NVIDIA Corporation GP108 [GeForce GT 1030] (reva1)

I would appreciate it if you could tell me how to solve it or give me some tips.
Thank you for your cooperation.

ubuntu gpu

2022-09-29 21:32

1 Answers

Sorry for the trouble.Self-resolved as follows:

$lspci|grep VGA

 17:00.0 VGA compatible controller: NVIDIA Corporation GP102 [GeForce GTX 1080 Ti] (reva1)
 65:00.0 VGA compatible controller: NVIDIA Corporation GP102 [GeForce GTX 1080 Ti] (reva1)
 b3:00.0 VGA compatible controller: NVIDIA Corporation GP108 [GeForce GT 1030] (reva1)

$sudonvidia-xconfig-->/etc/X11/xorg.conf generation

Convert the "b3:00.0" identified in 1. to decimal -->179:0:0

Add the following under the VenderName item in Section "Device" in /etc/X11/xorg.conf

BusID "PCI:179:0:0"

sudo reboot

I think the following links will be helpful.

16.7.GPU Device Assignment Red Hat Enterprise Linux 7 | Red Hat Customer Portal

Thank you.


2022-09-29 21:32

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.