From 847a2dcc6c789f0b13dfdcd109f26302691848ad Mon Sep 17 00:00:00 2001 From: Tayler Hetherington Date: Sun, 16 Jun 2013 15:14:47 -0800 Subject: 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] --- src/gpgpu-sim/gpu-cache.cc | 4 ++-- src/gpgpu-sim/gpu-cache.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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 &stats_vec : m_stats){ - std::fill(stats_vec.begin(), stats_vec.end(), 0); + for(unsigned i=0; i> m_stats; + std::vector< std::vector > m_stats; }; class cache_t { -- cgit v1.3