summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim/gpu-sim.cc
diff options
context:
space:
mode:
authortgrogers <[email protected]>2017-11-18 21:00:17 -0500
committertgrogers <[email protected]>2017-11-18 21:00:17 -0500
commit21528f301886ffdba5e921091658446d23c9c377 (patch)
tree30f298e6d4698b0fc3c80e311d0f9f14abef4795 /src/gpgpu-sim/gpu-sim.cc
parent14fdd4d3d250a33760b4cb04b8b5858531781d08 (diff)
fixing the cycle issues with using the cudamemcpies
Diffstat (limited to 'src/gpgpu-sim/gpu-sim.cc')
-rw-r--r--src/gpgpu-sim/gpu-sim.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gpgpu-sim/gpu-sim.cc b/src/gpgpu-sim/gpu-sim.cc
index 0267c31..8dc80d2 100644
--- a/src/gpgpu-sim/gpu-sim.cc
+++ b/src/gpgpu-sim/gpu-sim.cc
@@ -1602,8 +1602,7 @@ void gpgpu_sim::perf_memcpy_to_gpu( size_t dst_start_addr, size_t count )
{
if (m_memory_config->m_perf_sim_memcpy) {
assert (dst_start_addr % 32 == 0);
- // 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 unsigned wr_addr = dst_start_addr + counter;
addrdec_t raw_addr;
@@ -1612,7 +1611,6 @@ void gpgpu_sim::perf_memcpy_to_gpu( size_t dst_start_addr, size_t count )
m_memory_config->m_address_mapping.addrdec_tlx( wr_addr, &raw_addr );
const unsigned partition_id = raw_addr.sub_partition / m_memory_config->m_n_sub_partition_per_memory_channel;
m_memory_partition_unit[ partition_id ]->handle_memcpy_to_gpu( wr_addr, raw_addr.sub_partition, mask );
- gpu_sim_cycle += 1;
}
}
}