From 8cb14553ce944ff812b532811941bbffd2f7cfcc Mon Sep 17 00:00:00 2001 From: Kaushik Kulkarni Date: Wed, 24 Jun 2020 16:58:51 -0500 Subject: [PATCH 1/2] iupd should depend on yoink for correct code generation --- test/test_loopy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_loopy.py b/test/test_loopy.py index afb090e3b..03f8a075e 100644 --- a/test/test_loopy.py +++ b/test/test_loopy.py @@ -1706,7 +1706,7 @@ def test_global_barrier(ctx_factory): <> z[i] = z[i+1] + z[i] {id=wr_z,dep=top} <> v[i] = 11 {id=wr_v,dep=top} ... gbarrier {dep=wr_z:wr_v,id=yoink} - z[i] = z[i] - z[i+1] + v[i] {id=iupd, dep=wr_z} + z[i] = z[i] - z[i+1] + v[i] {id=iupd, dep=yoink} end ... gbarrier {dep=iupd,id=postloop} z[i] = z[i] - z[i+1] + v[i] {dep=postloop} -- GitLab From c890431650aee3d58d64a88879663ffeb1afade5 Mon Sep 17 00:00:00 2001 From: Kaushik Kulkarni Date: Thu, 25 Jun 2020 00:28:41 +0200 Subject: [PATCH 2/2] Apply 1 suggestion(s) to 1 file(s) --- test/test_loopy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_loopy.py b/test/test_loopy.py index 03f8a075e..0875c121c 100644 --- a/test/test_loopy.py +++ b/test/test_loopy.py @@ -1705,7 +1705,7 @@ def test_global_barrier(ctx_factory): ... gbarrier {id=top} <> z[i] = z[i+1] + z[i] {id=wr_z,dep=top} <> v[i] = 11 {id=wr_v,dep=top} - ... gbarrier {dep=wr_z:wr_v,id=yoink} + ... gbarrier {id=yoink,dep=wr_z:wr_v} z[i] = z[i] - z[i+1] + v[i] {id=iupd, dep=yoink} end ... gbarrier {dep=iupd,id=postloop} -- GitLab