summaryrefslogtreecommitdiff
path: root/src/gpu-compute
diff options
context:
space:
mode:
authorTuan Ta <taquangtuan1992@gmail.com>2016-06-03 16:20:08 -0400
committerTuan Ta <taquangtuan1992@gmail.com>2016-06-03 16:20:08 -0400
commitb6d20c25c39cc52bf9d9d4899dd5b7abfa418ae2 (patch)
tree378a94de8a8c4b6dd5d30834f510fdb71d49afdc /src/gpu-compute
parent289a8ebdb1348994164c292f24970e56817cd1d6 (diff)
downloadgem5-b6d20c25c39cc52bf9d9d4899dd5b7abfa418ae2.tar.xz
gpu-compute: Fixed a bug in global memory pipeline
Added a condition when inflightStores is incremented to prevent a deadlock caused by many memory fence requests generated by a CU
Diffstat (limited to 'src/gpu-compute')
-rw-r--r--src/gpu-compute/global_memory_pipeline.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu-compute/global_memory_pipeline.cc b/src/gpu-compute/global_memory_pipeline.cc
index 913327412..355018666 100644
--- a/src/gpu-compute/global_memory_pipeline.cc
+++ b/src/gpu-compute/global_memory_pipeline.cc
@@ -139,7 +139,7 @@ GlobalMemPipeline::exec()
} else {
if (inflightStores >= gmQueueSize) {
return;
- } else {
+ } else if (mp->m_op == Enums::MO_ST) {
++inflightStores;
}
}