summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim/gpu-cache.cc
diff options
context:
space:
mode:
authorTayler Hetherington <[email protected]>2013-06-16 15:14:47 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:50:47 -0700
commit847a2dcc6c789f0b13dfdcd109f26302691848ad (patch)
treed5d4171fb924036f4ce1622889d9ecddf1536664 /src/gpgpu-sim/gpu-cache.cc
parentb90f5f6d42e91fe5e093ed2656c1b64fc3257469 (diff)
Fixing compilation bug in CL16452. Tested with gcc version 4.2.1 and 4.3.4.
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 16453]
Diffstat (limited to 'src/gpgpu-sim/gpu-cache.cc')
-rw-r--r--src/gpgpu-sim/gpu-cache.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpgpu-sim/gpu-cache.cc b/src/gpgpu-sim/gpu-cache.cc
index d6282d1..d1a9835 100644
--- a/src/gpgpu-sim/gpu-cache.cc
+++ b/src/gpgpu-sim/gpu-cache.cc
@@ -364,8 +364,8 @@ void cache_stats::clear(){
///
/// Zero out all current cache statistics
///
- for(std::vector<unsigned> &stats_vec : m_stats){
- std::fill(stats_vec.begin(), stats_vec.end(), 0);
+ for(unsigned i=0; i<NUM_MEM_ACCESS_TYPE; ++i){
+ std::fill(m_stats[i].begin(), m_stats[i].end(), 0);
}
}