summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilson Fung <[email protected]>2013-07-19 18:51:46 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:50:58 -0700
commit91230095de59333cb694ca84f346cd66097b72db (patch)
treead573b7bc9c71bddaeecce72458a1f865ff48159
parentbb4cc3179dd36e882fb78732c9dfb99b1528b8d9 (diff)
Fix for bug 63. bk[i]->n_idle should be bk[j]->n_idle instead.
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 16635]
-rw-r--r--CHANGES2
-rw-r--r--src/gpgpu-sim/dram.cc2
2 files changed, 3 insertions, 1 deletions
diff --git a/CHANGES b/CHANGES
index 34d7b65..c743ce1 100644
--- a/CHANGES
+++ b/CHANGES
@@ -58,6 +58,8 @@ Version 3.2.1+edits (development branch) versus 3.2.1
- Eliminated some memory leaks in the pure functional simulator
- Added check to AerialVision to detect and warn about performance metric
entries with no data.
+ - Fix for Bug 63 - Changed bk[i]->n_idle++; to bk[j]->n_idle++; in
+ dram_t::cycle().
Version 3.2.1 versus 3.2.0
- Added kernel name and launch uids to performance statistics log.
diff --git a/src/gpgpu-sim/dram.cc b/src/gpgpu-sim/dram.cc
index 92c9727..a0e024b 100644
--- a/src/gpgpu-sim/dram.cc
+++ b/src/gpgpu-sim/dram.cc
@@ -379,7 +379,7 @@ void dram_t::cycle()
} else {
if (!CCDc && !RRDc && !RTWc && !WTRc && !bk[j]->RCDc && !bk[j]->RASc
&& !bk[j]->RCc && !bk[j]->RPc && !bk[j]->RCDWRc) k--;
- bk[i]->n_idle++;
+ bk[j]->n_idle++;
}
}
if (!issued) {