For openSUSE Leap 15.2 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/home:aeszter/openSUSE_Leap_15.2/home:aeszter.repo
zypper refresh
zypper install hwloc
For 15.5 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/home:aeszter/15.5/home:aeszter.repo
zypper refresh
zypper install hwloc
For 15.4 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/home:aeszter/15.4/home:aeszter.repo
zypper refresh
zypper install hwloc
For 15.3 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/home:aeszter/15.3/home:aeszter.repo
zypper refresh
zypper install hwloc