summaryrefslogtreecommitdiff
path: root/src
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
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')
-rw-r--r--src/gpgpu-sim/gpu-cache.cc4
-rw-r--r--src/gpgpu-sim/gpu-cache.h2
2 files changed, 3 insertions, 3 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);
}
}
diff --git a/src/gpgpu-sim/gpu-cache.h b/src/gpgpu-sim/gpu-cache.h
index 90805be..27b4208 100644
--- a/src/gpgpu-sim/gpu-cache.h
+++ b/src/gpgpu-sim/gpu-cache.h
@@ -472,7 +472,7 @@ public:
private:
bool check_valid(int type, int status) const;
- std::vector<std::vector<unsigned>> m_stats;
+ std::vector< std::vector<unsigned> > m_stats;
};
class cache_t {