diff options
author | Tuan Ta <taquangtuan1992@gmail.com> | 2016-06-03 16:20:08 -0400 |
---|---|---|
committer | Tuan Ta <taquangtuan1992@gmail.com> | 2016-06-03 16:20:08 -0400 |
commit | b6d20c25c39cc52bf9d9d4899dd5b7abfa418ae2 (patch) | |
tree | 378a94de8a8c4b6dd5d30834f510fdb71d49afdc | |
parent | 289a8ebdb1348994164c292f24970e56817cd1d6 (diff) | |
download | gem5-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
-rw-r--r-- | src/gpu-compute/global_memory_pipeline.cc | 2 |
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; } } |