RRZE-HPC / likwid

Performance monitoring and benchmarking suite
https://hpc.fau.de/research/tools/likwid/
GNU General Public License v3.0
1.66k stars 227 forks source link

[BUG] inconsistent information in likwid-genTopoCfg #606

Closed jdomke closed 3 weeks ago

jdomke commented 8 months ago

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 7 months ago

Definitely a bug. Thanks for reporting.