diff options
| author | Mahmoud <[email protected]> | 2018-03-28 14:01:17 -0400 |
|---|---|---|
| committer | Mahmoud <[email protected]> | 2018-03-28 14:01:17 -0400 |
| commit | 30401a261294a08a41fe0490b15ed031a225a02d (patch) | |
| tree | 11beec4b36776ba3161258ba9c8d16007220d4e6 /src/cuda-sim/cuda-sim.cc | |
| parent | 67a257442f46a9e8e02f63a9d71fcc7ca54f3f5e (diff) | |
| parent | cd4ec521b43093380ce9535ba940e65ea5bf0752 (diff) | |
Merge branch 'dev-purdue-integration' of https://github.rcac.purdue.edu/abdallm/gpgpu-sim_distribution into dev-purdue-integration
Diffstat (limited to 'src/cuda-sim/cuda-sim.cc')
| -rw-r--r-- | src/cuda-sim/cuda-sim.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cuda-sim/cuda-sim.cc b/src/cuda-sim/cuda-sim.cc index 2f166aa..3d3a820 100644 --- a/src/cuda-sim/cuda-sim.cc +++ b/src/cuda-sim/cuda-sim.cc @@ -1159,13 +1159,13 @@ void function_info::finalize( memory_space *param_mem ) // copy the parameter over word-by-word so that parameter that crosses a memory page can be copied over //Jin: copy parameter using aligned rules const size_t word_size = 4; - param_address = (param_address + size - 1) / size * size; //aligned with size + //param_address = (param_address + size - 1) / size * size; //aligned with size TODO: align not correct for (size_t idx = 0; idx < size; idx += word_size) { const char *pdata = reinterpret_cast<const char*>(param_value.pdata) + idx; // cast to char * for ptr arithmetic param_mem->write(param_address + idx, word_size, pdata,NULL,NULL); } unsigned offset = p.get_offset(); - assert(offset == param_address); + //assert(offset == param_address); param->set_address(param_address); param_address += size; } |
