From 95215f59825ff9def72c3bb237c58bb02c8c2411 Mon Sep 17 00:00:00 2001 From: Wilson Fung Date: Mon, 13 Feb 2012 10:36:29 -0800 Subject: Fixed the stat collection for gpgpu_n_shmem_insn. See Bug 128 for more detail. For verification, I added a directed test with a pre-calculated number of shared memory instructions. [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 11454] --- src/gpgpu-sim/shader.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/gpgpu-sim/shader.cc') diff --git a/src/gpgpu-sim/shader.cc b/src/gpgpu-sim/shader.cc index 42f43fe..82e4540 100644 --- a/src/gpgpu-sim/shader.cc +++ b/src/gpgpu-sim/shader.cc @@ -1026,6 +1026,13 @@ unsigned ldst_unit::clock_multiplier() const return m_config->mem_warp_parts; } +void ldst_unit::issue( warp_inst_t *&inst ) +{ + // stat collection + m_core->mem_instruction_stats(*inst); + pipelined_simd_unit::issue(inst); +} + void ldst_unit::cycle() { writeback(); -- cgit v1.3