diff options
| author | tgrogers <[email protected]> | 2017-11-18 15:48:26 -0500 |
|---|---|---|
| committer | tgrogers <[email protected]> | 2017-11-18 15:48:26 -0500 |
| commit | 9233f6f9eeea537187deb64add77a320442aa621 (patch) | |
| tree | c2351512f93d44354ea31509a2964d03fe530c71 /src/gpgpu-sim/l2cache.cc | |
| parent | a2b163e4476387df8693c1a784cf094f8868a086 (diff) | |
vectoradd is successfully filling the l2
Diffstat (limited to 'src/gpgpu-sim/l2cache.cc')
| -rw-r--r-- | src/gpgpu-sim/l2cache.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gpgpu-sim/l2cache.cc b/src/gpgpu-sim/l2cache.cc index 8fbf448..1df7858 100644 --- a/src/gpgpu-sim/l2cache.cc +++ b/src/gpgpu-sim/l2cache.cc @@ -74,6 +74,15 @@ memory_partition_unit::memory_partition_unit( unsigned partition_id, } } +void memory_partition_unit::handle_memcpy_to_gpu( size_t addr, unsigned global_subpart_id, mem_access_sector_mask_t mask ) +{ + unsigned p = global_sub_partition_id_to_local_id(global_subpart_id); + std::string mystring = + mask.to_string<char,std::string::traits_type,std::string::allocator_type>(); + MEMPART_DPRINTF("Copy Engine Request Received For Address=%zu, local_subpart=%u, sector_mask=%s \n", addr, p, mystring.c_str()); + m_sub_partition[p]->force_l2_tag_update(addr,gpu_sim_cycle+gpu_tot_sim_cycle, mask); +} + memory_partition_unit::~memory_partition_unit() { delete m_dram; |
