If the installed version of libpfm does not support the CPU architecture, it will fail to get counters.
The error is caught in XTC's runtime at src/xtc/csrcs/runtimes/host/evaluate_perf.c:124: evaluate3_perf: Assertion ret == 0' failed.`
It could be nice to give more info to the user.
Issue migrated from Gitlab