ROCm / rocm_smi_lib

ROCm SMI LIB
https://rocm.docs.amd.com/projects/rocm_smi_lib/en/latest/
MIT License
116 stars 49 forks source link

rocm_smi.py/amdsmi_cli.py has around a 3 second latency on first call. #151

Closed jw2249a closed 1 month ago

jw2249a commented 9 months ago

This issue wasn't present in 5.7.1, but upon upgrading to 6.0 it has around a 3 second latency.

It might not be this library specifically, but another upgraded rocm lib. It is just very noticeable here. I built the 5.7.1 version of rocm-smi and it was also noticeably slower with the 6.0 version of the other programs installed.

Here is the cprofs documenting the ~3 second latency. Both the amdgpu-install version and compiled version create the same issue.

The latency goes away if the same query is run again, but if it is changed at all or you wait ~10seconds it becomes slow again.

I have a 7900 xtx on ubuntu 22.04

ppanchad-amd commented 1 month ago

@jw2249a Apologies for the lack of response. Can you please check if issue still exists with the latest ROCm 6.2? If not, please close the ticket. Thanks!