sysdetect on power9 segfault

Issue #114 resolved
Giuseppe Congiu created an issue

calling papi_hardware_avail on power9 causes the tool to segfault. This is due to an anomaly in the enumeration of nodes in the sys file system for power9. In the specific case I have tested the system has two sockets (and two numas) each with 64 hwthreads. The first 64 hwthreads in sys are assigned to node0. The second 64 hwthreads are assigned to node8 instead of node1. This causes sysdetect to access memory of a node for which memory was not allocated in the first place and causes a segfault.

A fix could be to return an error instead of trying accessing memory. This means on power9 there is no thread affinity information returned.

Comments (2)

  1. Log in to comment