Skip to content

Commit

Permalink
Fix cpuinfo path used in topology_hwloc.c on ARM devices (RRZE-HPC#505)
Browse files Browse the repository at this point in the history
  • Loading branch information
OoJJBoO authored Dec 12, 2022
1 parent d82c671 commit 4f548f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/topology_hwloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ int parse_cpuinfo(uint32_t* count, uint32_t* family, uint32_t* variant, uint32_t
struct tagbstring vendString = bsStatic("CPU implementer");
struct tagbstring procString = bsStatic("processor");

if (NULL != (fp = fopen ("cpuinfo", "r")))
if (NULL != (fp = fopen ("/proc/cpuinfo", "r")))
{
bstring src = bread ((bNread) fread, fp);
struct bstrList* tokens = bsplit(src,(char) '\n');
Expand Down

0 comments on commit 4f548f4

Please sign in to comment.