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/cuda-sim | |
| parent | a2b163e4476387df8693c1a784cf094f8868a086 (diff) | |
vectoradd is successfully filling the l2
Diffstat (limited to 'src/cuda-sim')
| -rw-r--r-- | src/cuda-sim/cuda-sim.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cuda-sim/cuda-sim.cc b/src/cuda-sim/cuda-sim.cc index a668db1..685ae53 100644 --- a/src/cuda-sim/cuda-sim.cc +++ b/src/cuda-sim/cuda-sim.cc @@ -401,6 +401,10 @@ void gpgpu_t::memcpy_to_gpu( size_t dst_start_addr, const void *src, size_t coun char *src_data = (char*)src; for (unsigned n=0; n < count; n ++ ) m_global_mem->write(dst_start_addr+n,1, src_data+n,NULL,NULL); + + // Copy into the performance model. + extern gpgpu_sim* g_the_gpu; + g_the_gpu->memcpy_to_gpu(dst_start_addr, src, count); if(g_debug_execution >= 3) { printf( " done.\n"); fflush(stdout); |
