• 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.03/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
323 (0.36/day)
System Name Burning a hole through my wallet
Processor i7 6800k @ 4.4GHz
Motherboard MSI X99A SLI Plus
Cooling EK Supremacy Evo w/ EK 360XE & 3xVardar fans
Memory 32GB Corsair Dominator Platinum 3000MHz
Video Card(s) 1080ti FTW3 w/EK fullcover block&XOC BIOS
Storage 500GB 960 EVO 2x2TB WD Caviar Black RAID0 4TB Seagate 4TB Ironwolf
Display(s) ehhh 4 of em 1 4k 1 2k a shit one and a colorful one
Case TT Core X9
Power Supply Corsair CX 650
Mouse Logitech G502
Keyboard Logitech G910
Software Win 10 Pro 32
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.03/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
5,050 (1.00/day)
Location
Whatever my internet protocol shows I guess O.o
System Name Lynni and The Great White Dragon in Tempered Glass | Lynni-Stick
Processor Intel Core i7-8086K (Coffee Cups) | Intel Atom X5-Z8300 "Cherry Trail"
Motherboard ASRock Z370 Taichi (Bios: P3.20 Disabled Intel ME modded by R-T-B) | Intel Compute Stick board
Cooling Fractal Design Celsius S24 | Fan xD
Memory Geil Dragon 4x8GB@3000mhz 15-17-17-35 (GWW416GB3000C15DC) | 2GB DDR3-L @ 1600mhz
Video Card(s) Nvidia GTX 1080 Ti FE "Pascal" Hybrid Core/Mem: +130MHz GPU Boost: 2000MHz+ | Intel HD Graphics
Storage OS/Games:Samsung 970 EVO 500GB NVME|Samsung EVO 850 1TB SSD|Data:3xWD Red/Purple 4TB & WD SE 1TB
Display(s) Dell S2417DG 1440p@165hz G-Sync | LG 55UK6100PLB IPS 4K HDR
Case Phantek Eclipse P400 Black/White | Intel Compute Case
Audio Device(s) Audio-Technica A550Z @ Creative Sound Blaster Z (Retail) | Intel HD Audio
Power Supply Corsair SF600 | Generic Intel Power Adapter (3amp)
Mouse Logitech G502 | Logtech MK270 kit
Keyboard Razer Blackwidow Chroma X UK-Logitech G305 | Logitech MK270 kit
Software Win10 Pro SCU UK x64 | Win10 Home SCU x86
Benchmark Scores Time Spy: https://www.3dmark.com/3dm/33868867?
What linux are you using?
 
Joined
Aug 29, 2005
Messages
5,050 (1.00/day)
Location
Whatever my internet protocol shows I guess O.o
System Name Lynni and The Great White Dragon in Tempered Glass | Lynni-Stick
Processor Intel Core i7-8086K (Coffee Cups) | Intel Atom X5-Z8300 "Cherry Trail"
Motherboard ASRock Z370 Taichi (Bios: P3.20 Disabled Intel ME modded by R-T-B) | Intel Compute Stick board
Cooling Fractal Design Celsius S24 | Fan xD
Memory Geil Dragon 4x8GB@3000mhz 15-17-17-35 (GWW416GB3000C15DC) | 2GB DDR3-L @ 1600mhz
Video Card(s) Nvidia GTX 1080 Ti FE "Pascal" Hybrid Core/Mem: +130MHz GPU Boost: 2000MHz+ | Intel HD Graphics
Storage OS/Games:Samsung 970 EVO 500GB NVME|Samsung EVO 850 1TB SSD|Data:3xWD Red/Purple 4TB & WD SE 1TB
Display(s) Dell S2417DG 1440p@165hz G-Sync | LG 55UK6100PLB IPS 4K HDR
Case Phantek Eclipse P400 Black/White | Intel Compute Case
Audio Device(s) Audio-Technica A550Z @ Creative Sound Blaster Z (Retail) | Intel HD Audio
Power Supply Corsair SF600 | Generic Intel Power Adapter (3amp)
Mouse Logitech G502 | Logtech MK270 kit
Keyboard Razer Blackwidow Chroma X UK-Logitech G305 | Logitech MK270 kit
Software Win10 Pro SCU UK x64 | Win10 Home SCU x86
Benchmark Scores Time Spy: https://www.3dmark.com/3dm/33868867?
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.03/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
5,050 (1.00/day)
Location
Whatever my internet protocol shows I guess O.o
System Name Lynni and The Great White Dragon in Tempered Glass | Lynni-Stick
Processor Intel Core i7-8086K (Coffee Cups) | Intel Atom X5-Z8300 "Cherry Trail"
Motherboard ASRock Z370 Taichi (Bios: P3.20 Disabled Intel ME modded by R-T-B) | Intel Compute Stick board
Cooling Fractal Design Celsius S24 | Fan xD
Memory Geil Dragon 4x8GB@3000mhz 15-17-17-35 (GWW416GB3000C15DC) | 2GB DDR3-L @ 1600mhz
Video Card(s) Nvidia GTX 1080 Ti FE "Pascal" Hybrid Core/Mem: +130MHz GPU Boost: 2000MHz+ | Intel HD Graphics
Storage OS/Games:Samsung 970 EVO 500GB NVME|Samsung EVO 850 1TB SSD|Data:3xWD Red/Purple 4TB & WD SE 1TB
Display(s) Dell S2417DG 1440p@165hz G-Sync | LG 55UK6100PLB IPS 4K HDR
Case Phantek Eclipse P400 Black/White | Intel Compute Case
Audio Device(s) Audio-Technica A550Z @ Creative Sound Blaster Z (Retail) | Intel HD Audio
Power Supply Corsair SF600 | Generic Intel Power Adapter (3amp)
Mouse Logitech G502 | Logtech MK270 kit
Keyboard Razer Blackwidow Chroma X UK-Logitech G305 | Logitech MK270 kit
Software Win10 Pro SCU UK x64 | Win10 Home SCU x86
Benchmark Scores Time Spy: https://www.3dmark.com/3dm/33868867?
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.03/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