diff options
| author | Inderpreet Singh <[email protected]> | 2011-08-25 02:04:43 -0800 |
|---|---|---|
| committer | Andrew Boktor <[email protected]> | 2014-08-14 13:18:23 -0700 |
| commit | a63925256ec38cf38e9928df067bac9781d21d91 (patch) | |
| tree | e44260dbc410531877df4d26761fdabe3c6ba27e /src/cuda-sim | |
| parent | 75cac88e2131564d79f0407c2d86d0429a1e2dba (diff) | |
Fix for Bug 109 - memory alignment should be 256 bytes.
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 10090]
Diffstat (limited to 'src/cuda-sim')
| -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 e7667b2..e3e0245 100644 --- a/src/cuda-sim/cuda-sim.cc +++ b/src/cuda-sim/cuda-sim.cc @@ -324,7 +324,7 @@ void* gpgpu_t::gpu_malloc( size_t size ) fflush(stdout); } m_dev_malloc += size; - if (size%64) m_dev_malloc += (64 - size%64); //align to 64 byte boundaries + if (size%256) m_dev_malloc += (256 - size%256); //align to 256 byte boundaries return(void*) result; } @@ -336,7 +336,7 @@ void* gpgpu_t::gpu_mallocarray( size_t size ) fflush(stdout); } m_dev_malloc += size; - if (size%64) m_dev_malloc += (64 - size%64); //align to 64 byte boundaries + if (size%256) m_dev_malloc += (256 - size%256); //align to 256 byte boundaries return(void*) result; } |
