[BUG] inconsistent information in likwid-genTopoCfg
jdomke opened this issue · 1 comments
jdomke commented
Describe the bug
Running likwid-genTopoCfg twice results in missing information (architecture) and incorrect information (featureFlags), see below. The ERROR and 'Cannot read' messages shouldn't be shown to not confuse a user who never ran the command before and has no idea about the likwid internals, but that is just a side note.
domke@a64fx ~/ $ likwid-genTopoCfg
ERROR - [/home/domke/likwid/src/topology.c:readTopologyFile:288] No such file or directory.
Cannot read topology information from file /home/domke/likwid/etc/likwid_topo.cfg
Writing new topology file /home/domke/likwid/etc/likwid_topo.cfg
domke@a64fx ~/ $ likwid-genTopoCfg -o 2
Writing new topology file 2
domke@a64fx ~/ $ sort /home/domke/likwid/etc/likwid_topo.cfg >s1
domke@a64fx ~/ $ sort 2 >s2
domke@a64fx ~/ $ diff s1 s2
1,2c1,2
< cpuid_info architecture = armv8
< cpuid_info clock = 503806.0
---
> cpuid_info architecture =
> cpuid_info clock = 928900.0
4c4
< cpuid_info featureFlags = 133143988224
---
> cpuid_info featureFlags = 2048
TomTheBear commented
Definitely a bug. Thanks for reporting.