• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

How to identify individual GPUs in Linux

CCaves

New Member
Joined
Nov 20, 2018
Messages
7 (0.00/day)
I am trying to figure out a way to identify individual GPUs on a linux system. From what I understand I should be able to do this using atiflash -isr should allow me to do this easily. However, the command doesn't seem to work, I am not sure if I am misinterpreting the command or if it is simply no longer supported or what's going on.

Anyone got any suggestions?
 
Joined
Jan 20, 2017
Messages
328 (0.12/day)
System Name Burning a hole through my wallet
Processor 3700X
Motherboard Maximus 8 Hero
Cooling Custom loop (EK Extreme 360 Rad, Supremacy evo w/AM4 bracket)
Memory 2x16 Corsair Vengeance Pro RGB @3200MHz
Video Card(s) EVGA 2080s hybrid
Storage 960 Evo, 660p, P1, BX500, 2XWD Black, Ironwolf Proo
Display(s) Predator 27" 4k 144hz HDR
Case NZXT h700i
Power Supply EVGA G3 850
Mouse Logitech G502 hero
Keyboard Drop ALT W/holypanda switches
Software Win 10 Pro 64, Ubuntu 20.04, Manjaro (latest)
looking through dmesg should give you the ability to see something identifying. "dmesg | grep nvidia" or amd should work. Otherwise if they are nvidia cards with Nvidia drivers nvidia-smi will work.
 

CCaves

New Member
Joined
Nov 20, 2018
Messages
7 (0.00/day)
I tried dmesg and couldn't find anything that was unique other than PCIE slots. Perhaps I should have been more clear, I am trying to give each GPU a unique ID so I can track them through a large system. For instance, I need to be able to track them when I move them between motherboards etc.
 
Joined
Aug 29, 2005
Messages
7,079 (1.04/day)
Location
Asked my ISP.... 0.0
System Name Lynni PS \ Lenowo TwinkPad T480
Processor AMD Ryzen 7 7700 Raphael \ i7-8550U Kaby Lake-R
Motherboard ASRock B650M PG Riptide Bios v. 2.02 AMD AGESA 1.1.0.0 \ Lenowo 20L60036MX Bios 1.47
Cooling Noctua NH-D15 Chromax.Black (Only middle fan) \ Lenowo WN-2
Memory G.Skill Flare X5 2x16GB DDR5 6000MHZ CL36-36-36-96 AMD EXPO \ Willk Elektronik 2x16GB 2666MHZ CL17
Video Card(s) Asus GeForce RTX™ 4070 Dual OC GPU: 2325-2355 MEM: 1462| Nvidia GeForce MX™ 150 2GB GDDR5 Micron
Storage Gigabyte M30 1TB|Sabrent Rocket 2TB| HDD: 10TB|1TB \ SKHynix 256GB 2242 3x2
Display(s) LG UltraGear 27GP850-B 1440p@165Hz | LG 48CX OLED 4K HDR | AUO 14" 1440p IPS
Case Asus Prime AP201 White Mesh | Lenowo T480 chassis
Audio Device(s) Steelseries Arctis Pro Wireless
Power Supply Be Quiet! Pure Power 12 M 750W Goldie | 65W
Mouse Logitech G305 Lightspeedy Wireless | Lenowo TouchPad & Logitech G305
Keyboard Akko 3108 DS Horizon V2 Cream Yellow | T480 UK Lumi
Software Win11 Pro 23H2 UK
Benchmark Scores 3DMARK: https://www.3dmark.com/3dm/89434432? GPU-Z: https://www.techpowerup.com/gpuz/details/v3zbr
What linux are you using?
 
Joined
Aug 29, 2005
Messages
7,079 (1.04/day)
Location
Asked my ISP.... 0.0
System Name Lynni PS \ Lenowo TwinkPad T480
Processor AMD Ryzen 7 7700 Raphael \ i7-8550U Kaby Lake-R
Motherboard ASRock B650M PG Riptide Bios v. 2.02 AMD AGESA 1.1.0.0 \ Lenowo 20L60036MX Bios 1.47
Cooling Noctua NH-D15 Chromax.Black (Only middle fan) \ Lenowo WN-2
Memory G.Skill Flare X5 2x16GB DDR5 6000MHZ CL36-36-36-96 AMD EXPO \ Willk Elektronik 2x16GB 2666MHZ CL17
Video Card(s) Asus GeForce RTX™ 4070 Dual OC GPU: 2325-2355 MEM: 1462| Nvidia GeForce MX™ 150 2GB GDDR5 Micron
Storage Gigabyte M30 1TB|Sabrent Rocket 2TB| HDD: 10TB|1TB \ SKHynix 256GB 2242 3x2
Display(s) LG UltraGear 27GP850-B 1440p@165Hz | LG 48CX OLED 4K HDR | AUO 14" 1440p IPS
Case Asus Prime AP201 White Mesh | Lenowo T480 chassis
Audio Device(s) Steelseries Arctis Pro Wireless
Power Supply Be Quiet! Pure Power 12 M 750W Goldie | 65W
Mouse Logitech G305 Lightspeedy Wireless | Lenowo TouchPad & Logitech G305
Keyboard Akko 3108 DS Horizon V2 Cream Yellow | T480 UK Lumi
Software Win11 Pro 23H2 UK
Benchmark Scores 3DMARK: https://www.3dmark.com/3dm/89434432? GPU-Z: https://www.techpowerup.com/gpuz/details/v3zbr

That's good to know, I usually at work deals with Centos and FreeBSD at work, but try: lspci | grep -E 'VGA|Display' or lspci -nn |egrep "VGA|Display" in the terminal that should be enough.

If you want to use dmesg like @therealmeep says I think it's dmesg |grep -i agp not a 110% sure if I am way off haven't used Ubuntu for years I am usually a Windows person :roll:
 

CCaves

New Member
Joined
Nov 20, 2018
Messages
7 (0.00/day)
That's good to know, I usually at work deals with Centos and FreeBSD at work, but try: lspci | grep -E 'VGA|Display' or lspci -nn |egrep "VGA|Display" in the terminal that should be enough.

If you want to use dmesg like @therealmeep says I think it's dmesg |grep -i agp not a 110% sure if I am way off haven't used Ubuntu for years I am usually a Windows person :roll:

As I don't have access right now (Thanksgiving) I will try that and reply asap. Just for the record what would I be looking for? Will this give me access to the SN or something?
 
Joined
Aug 29, 2005
Messages
7,079 (1.04/day)
Location
Asked my ISP.... 0.0
System Name Lynni PS \ Lenowo TwinkPad T480
Processor AMD Ryzen 7 7700 Raphael \ i7-8550U Kaby Lake-R
Motherboard ASRock B650M PG Riptide Bios v. 2.02 AMD AGESA 1.1.0.0 \ Lenowo 20L60036MX Bios 1.47
Cooling Noctua NH-D15 Chromax.Black (Only middle fan) \ Lenowo WN-2
Memory G.Skill Flare X5 2x16GB DDR5 6000MHZ CL36-36-36-96 AMD EXPO \ Willk Elektronik 2x16GB 2666MHZ CL17
Video Card(s) Asus GeForce RTX™ 4070 Dual OC GPU: 2325-2355 MEM: 1462| Nvidia GeForce MX™ 150 2GB GDDR5 Micron
Storage Gigabyte M30 1TB|Sabrent Rocket 2TB| HDD: 10TB|1TB \ SKHynix 256GB 2242 3x2
Display(s) LG UltraGear 27GP850-B 1440p@165Hz | LG 48CX OLED 4K HDR | AUO 14" 1440p IPS
Case Asus Prime AP201 White Mesh | Lenowo T480 chassis
Audio Device(s) Steelseries Arctis Pro Wireless
Power Supply Be Quiet! Pure Power 12 M 750W Goldie | 65W
Mouse Logitech G305 Lightspeedy Wireless | Lenowo TouchPad & Logitech G305
Keyboard Akko 3108 DS Horizon V2 Cream Yellow | T480 UK Lumi
Software Win11 Pro 23H2 UK
Benchmark Scores 3DMARK: https://www.3dmark.com/3dm/89434432? GPU-Z: https://www.techpowerup.com/gpuz/details/v3zbr
lspci | grep -E 'VGA|Display' should show info like this: 01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Pitcairn PRO [Radeon HD 7850 / R7 265 / R9 270 1024SP] (This is just an example)

lspci -nn |egrep "VGA|Display" should show info like this: 00:02.0 VGA compatible controller [0300]: Intel Corporation 4 Series Chipset Integrated Graphics Controller [8086:2e32] (rev 03) (This is just an example)

They should both be listing all the graphic cards installed in the pc if this doesn't work what about lspci | grep VGA this should just list the gpu model. Again sorry if I am wrong I do not have Ubuntu and I am a Windows person but I do pick up things and remember them when I need them ;)
 

CCaves

New Member
Joined
Nov 20, 2018
Messages
7 (0.00/day)
Ok, I suspect you might be misunderstanding what I am asking.

I need a way to track individual GPUs through a large system many of which are the same make and model. Thus what I need is a unique identifier for each GPU such as a serial number or Mac Address. This is why I started with the -isr command in atiflash. That said the number given by ispci -nn |egrep (8086:2e32), I am assuming that this is not a Serial Number but rather a BIOS hash or something since that is what it is with dmesg | grep amd which is what I have already tried. Correct me if I am wrong?
 
Last edited:
Top