gem5 / gem5

The official repository for the gem5 computer-system architecture simulator.
http://www.gem5.org
BSD 3-Clause "New" or "Revised" License
1.5k stars 1.1k forks source link

cpu,stdlib: Fix Access Trace for Accessing Indices in SpatterGen #1258

Closed mahyarsamani closed 1 week ago

mahyarsamani commented 1 week ago

This change fixes the way indices are generated in a multi generator setup. It changes it from all cores generating the same trace of indices for accessing the index array to each core generating an interleaved subset of indices. For an example look below for traces (indices to index array) in a 2 core setup.

Before: core_0: 0, 1, 2, 3, 4, 5, 6, 7, ... core_1: 0, 1, 2, 3, 4, 5, 6, 7, ... After: core_0: 0, 1, 2, 3, 8, 9, 10, 11, ... core_1: 4, 5, 6, 7, 12, 13, 14, 15, ...

Additionally, this change fixes the SpatterKernel class in the standard library to comply with the change in the SpatterGen source code.

BobbyRBruce commented 1 week ago

I went ahead and removed the unused member variables.