pub fn resolve_rocminfo_path() -> StringExpand description
Resolve the full path to the rocminfo binary.
When running via sudo, the user’s PATH is typically stripped, so bare
rocminfo fails with “command not found” even though /opt/rocm/bin is
in the user’s PATH. This function resolves the full path by checking
known ROCm installation directories before falling back to bare rocminfo.
Resolution order:
/opt/rocm/bin/rocminfo(standard ROCm install)- Any
/opt/rocm-*/bin/rocminfo(versioned installs, newest first) /usr/lib/rocm/bin/rocminfo(Arch AUR)rocminfobare (last resort, relies on PATH)