summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim/gpu-sim.cc
diff options
context:
space:
mode:
authortgrogers <[email protected]>2017-11-18 19:30:53 -0500
committertgrogers <[email protected]>2017-11-18 19:30:53 -0500
commit05182e14ea348b9d57fc14aeae1ff3f684512262 (patch)
tree2efb65f55124c8df7e39e5382c4d2e4f351766f8 /src/gpgpu-sim/gpu-sim.cc
parentb9420953855042566ea3371882aef89f66a3f055 (diff)
64-address used on the CPU side, but GPGPU-Sim Truncates it to 32-bit.... truncating the address here fixes the issue and we start propoerly hitting in the L2
Diffstat (limited to 'src/gpgpu-sim/gpu-sim.cc')
-rw-r--r--src/gpgpu-sim/gpu-sim.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpgpu-sim/gpu-sim.cc b/src/gpgpu-sim/gpu-sim.cc
index 0c2ea1c..0267c31 100644
--- a/src/gpgpu-sim/gpu-sim.cc
+++ b/src/gpgpu-sim/gpu-sim.cc
@@ -1605,7 +1605,7 @@ void gpgpu_sim::perf_memcpy_to_gpu( size_t dst_start_addr, size_t count )
// Right now - I am just going to assume you write the whole last cache line...
// assert (count % 128 == 0);
for ( unsigned counter = 0; counter < count; counter += 32 ) {
- const size_t wr_addr = dst_start_addr + counter;
+ const unsigned wr_addr = dst_start_addr + counter;
addrdec_t raw_addr;
mem_access_sector_mask_t mask;
mask.set(wr_addr % 128 / 32);