Use
root@computenode:~# ls -l /dev/dri/by-path/
total 0
lrwxrwxrwx 1 root root 8 Apr 20 07:42 pci-0000:00:02.0-card -> ../card2
lrwxrwxrwx 1 root root 13 Apr 20 07:42 pci-0000:00:02.0-render -> ../renderD130
lrwxrwxrwx 1 root root 8 Apr 20 07:42 pci-0000:09:00.0-card -> ../card0
lrwxrwxrwx 1 root root 13 Apr 20 07:42 pci-0000:09:00.0-render -> ../renderD128
lrwxrwxrwx 1 root root 8 Apr 21 12:54 pci-0000:0d:00.0-card -> ../card1
lrwxrwxrwx 1 root root 13 Apr 20 07:42 pci-0000:0d:00.0-render -> ../renderD129
root@computenode:~#
You will then be able to match PCI ID to dev.
root@computenode:~# lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation AlderLake-S GT1 (rev 0c)
03:00.0 VGA compatible controller: Intel Corporation DG2 [Arc A770] (rev 08)
09:00.0 VGA compatible controller: NVIDIA Corporation TU117GLM [Quadro T400 Mobile] (rev a1)
0d:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi 24 [Radeon RX 6400/6500 XT/6500M] (rev c7)
root@computenode:~#