gpu-compute: Fixed a bug in global memory pipeline
authorTuan Ta <taquangtuan1992@gmail.com>
Fri, 3 Jun 2016 20:20:08 +0000 (16:20 -0400)
committerTuan Ta <taquangtuan1992@gmail.com>
Fri, 3 Jun 2016 20:20:08 +0000 (16:20 -0400)
Added a condition when inflightStores is incremented to prevent a deadlock
caused by many memory fence requests generated by a CU

src/gpu-compute/global_memory_pipeline.cc

index 913327412fea1a96d297a63b1fdfa537bbcccf99..3550186663d45fcb43539f229c4375506edbb410 100644 (file)
@@ -139,7 +139,7 @@ GlobalMemPipeline::exec()
         } else {
             if (inflightStores >= gmQueueSize) {
                 return;
-            } else {
+            } else if (mp->m_op == Enums::MO_ST) {
                 ++inflightStores;
             }
         }