Closed Jonathan3145 closed 4 years ago
Instead use something like
(stats["Useful Instructions"].sum() / stats["Useful Cycles"].sum())/ (self._stats_dict[ref_key].stats["Useful Instructions"].sum()/self._stats_dict[ref_key].stats["Useful Cycles"].sum())
Doing it this way ensures that the IPC is weighted by instructions per thread rather than being indifferent to relative workload
Instead use something like
(stats["Useful Instructions"].sum() / stats["Useful Cycles"].sum())/ (self._stats_dict[ref_key].stats["Useful Instructions"].sum()/self._stats_dict[ref_key].stats["Useful Cycles"].sum())