diff options
| author | Wilson Fung <[email protected]> | 2012-02-13 10:36:29 -0800 |
|---|---|---|
| committer | Andrew Boktor <[email protected]> | 2014-08-14 13:19:02 -0700 |
| commit | 95215f59825ff9def72c3bb237c58bb02c8c2411 (patch) | |
| tree | ef008e44eff86a36e5a95ae44f09d9845e280522 /src/gpgpu-sim/shader.cc | |
| parent | f0bfd72df3f664c2b44595d1a393ec6b535181c0 (diff) | |
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]
Diffstat (limited to 'src/gpgpu-sim/shader.cc')
| -rw-r--r-- | src/gpgpu-sim/shader.cc | 7 |
1 files changed, 7 insertions, 0 deletions
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(); |
