sstsimulator / sst-elements

SST Architectural Simulation Components and Libraries
http://www.sst-simulator.org
Other
93 stars 121 forks source link

Ariel doesn't count SIMD and scalar instructions properly #2327

Closed plavin closed 8 months ago

plavin commented 8 months ago

Ariel counts SIMD instructions with statFPSPSIMDIns. This stat is incremented in arielcore.cc::ArielCore::refillQueue. It increments the stat when it encounters an ac.command of type ARIEL_START_INSTRUCTION and whenac.inst.simdElemCount` is greater than 1.

However, simdElemCount is never set for ac.command of type ARIEL_START_INSTRUCTION - it is only set for ARIEL_PERFORM_READ and ARIEL_PERFORM_WRITE.

The simplest solution will just be to set this value for ARIEL_START_INSTRUCTION commands, since it appears it should be available any time that command is created.

plavin commented 8 months ago

Fixed by #2328