zwegner / x86-info-term

A terminal viewer for x86 instruction/intrinsic information using Python 3 + curses
GNU General Public License v3.0
128 stars 7 forks source link

Failed to decode uops.info data #4

Closed hghwng closed 3 years ago

hghwng commented 3 years ago

I guess the data from uops.info has changed. Any idea?

Traceback (most recent call last):
  File "x86_info_term.py", line 1308, in <module>
    main()
  File "x86_info_term.py", line 1291, in main
    args, cache = get_cache()
  File "x86_info_term.py", line 1288, in get_cache
    return args, get_info(args)
  File "x86_info_term.py", line 1242, in get_info
    [version, data] = dataset.parse_fn(dataset.full_path)
  File "x86_info_term.py", line 390, in parse_uops_info
    tp = meas.attrib['TP']
KeyError: 'TP'
zwegner commented 3 years ago

Thanks for the report! Fixed it.

Yeah, the uops.info data changed a bit, adding more throughput data. I went with using the 'TP_unrolled' throughput if the plain 'TP' isn't available.

hghwng commented 3 years ago

@zwegner Big thanks for the fix😄 This little utility saved me many hours when exploring SIMD programming!

zwegner commented 3 years ago

No problem! And that's great to hear, I use it all the time myself, and other people using it is a nice bonus!