[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1065701: rocm_agent_enumerator: crash on systems without AMD GPU



Control: found -1 5.2.3-3

Hi Cory,

On 2024-03-09 07:20, Cordell Bloor wrote:
> On systems, the rocm_agent_enumerator command may crash with an error:
> 
>     Traceback (most recent call last):
>       File "/usr/bin/rocm_agent_enumerator", line 260, in <module>
>         main()
>       File "/usr/bin/rocm_agent_enumerator", line 244, in main
>         target_list = readFromKFD()
>                       ^^^^^^^^^^^^^
>       File "/usr/bin/rocm_agent_enumerator", line 193, in readFromKFD
>         for node in sorted(os.listdir(topology_dir)):
>                            ^^^^^^^^^^^^^^^^^^^^^^^^
>     FileNotFoundError: [Errno 2] No such file or directory: '/sys/class/kfd/kfd/topology/nodes/'

I've been seeing this one for a long time in package builds, but it
didn't occur to me that this is a user-visible issue, too.

Seen here [1], for example.

Best,
Christian

[1] https://buildd.debian.org/status/fetch.php?pkg=rocblas&arch=amd64&ver=5.3.3%2Bdfsg-2&stamp=1685955323&raw=0


Reply to: