From b6d20c25c39cc52bf9d9d4899dd5b7abfa418ae2 Mon Sep 17 00:00:00 2001 From: Tuan Ta Date: Fri, 3 Jun 2016 16:20:08 -0400 Subject: [PATCH] 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 --- src/gpu-compute/global_memory_pipeline.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } }