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

Re: Attaching rocminfo to bug reports



Joost van Baal-Ilić dijo [Sat, Aug 02, 2025 at 09:56:20AM +0200]:
<snip>
I created a very simple script and tested it by filing Bug #1110251 [3]:

$ cat /usr/share/bug/rocm-smi
#!/bin/bash

rocminfo_path="$(type -p rocminfo)"
if [ -n "$rocminfo_path" ]; then
  yesno "Attach output of 'rocminfo' to this bug report? (y/N) "
  if [ "$REPLY" = "yep" ]; then
    rocminfo >&3
  fi
fi

<snip>

The part that I'm most unsure about is how to add this script to all the
relevant packages. It would quickly become a maintenance burden to
copy/paste this script into every package and keep it up-to-date. I suppose
we could just have one copy somewhere and each package could install a
symlink to this script? Or is there a standard way of handling this?

Otoh: since it's only about 200 bytes, I guess it's ok to keep copy/paste-ing it
around?

FWIW... How likely would it be wanting to change the behavior in the future
(i.e. to include further data, to specify a --verbose parameter or anything
like that)? Having it as an included snppet in a central location for all
of the ROCm scripts can make maintenance easier.


Reply to: