re-implement several functions using hwloc

Open Tianhao Liu requested to merge liutianhao/open-h:mapping-functions into master

#1 I have reimplemented functions that map logical CPU IDs to physical IDs in both directions. Since hwloc provides a tree-like topology structure for describing CPU architecture, we can leverage this topology to obtain the mapping information, which is independent of the mapping scheme. Therefore, the new mapping function is independent of the mapping scheme. Xnip2024-03-27_12-37-33

Merge request reports