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

How GPU-Z reads out PCIe generation and link speed for Nvidia RTX4000?

zzt

New Member
Joined
May 3, 2023
Messages
2 (0.00/day)
As in title if that's not a secret how exactly gpu-z reads out RTX 4090 pcie generation (1.0-4.0)?

I'm asking because my AM5 B650E motherboard has a BIOS bug that results 20% of the time in gpu negotiation either PCIe 3.0 or 1.1.
That's terrible for performance so I wrote myself a simple program that uses Nvidia NVML library from CUDA Toolkit to query pcie gen values and warn me on boot. It was working consistently with what both gpuz and nvidia-smi tool sees for over a month. Results were also consistent with 3dmark pcie bandwidth test (13gbps for 3.0, 27gbps for 4.0).

Today I've booted to a state where only gpuz correctly seen degraded 1.1 pcie speed. Verified with 3dmark bandwidth test and games stuttering. However nvidia-smi, 'system info' in nvidia control panel and my little program were seeing 4.0 instead. So clearly gpuz is not using nvidia nvml library to get the data. It would be super helpful if someone could point me to alternative source.
 

W1zzard

Administrator
Staff member
Joined
May 14, 2004
Messages
27,993 (3.71/day)
Processor Ryzen 7 5700X
Memory 48 GB
Video Card(s) RTX 4080
Storage 2x HDD RAID 1, 3x M.2 NVMe
Display(s) 30" 2560x1600 + 19" 1280x1024
Software Windows 10 64-bit
Thanks for your testing, this helps me have confidence in GPU-Z's PCIe reporting, which sometimes gets criticized when it doesn't show the hoped-for values ;)

I'm reading directly from the PCI config space of the target device

Maybe the -dump parameter of GPU-Z will work for you to automate the check?
 

W1zzard

Administrator
Staff member
Joined
May 14, 2004
Messages
27,993 (3.71/day)
Processor Ryzen 7 5700X
Memory 48 GB
Video Card(s) RTX 4080
Storage 2x HDD RAID 1, 3x M.2 NVMe
Display(s) 30" 2560x1600 + 19" 1280x1024
Software Windows 10 64-bit
-dump output.xml
 
Top