From f0284b2549840c83bf2e4117d17343196858a9b1 Mon Sep 17 00:00:00 2001 From: David Nadlinger Date: Mon, 11 Jan 2021 23:53:44 +0100 Subject: [PATCH] compiler: Fix collision of environments in matmult implementations GitHub: Fixes #1578. --- artiq/compiler/transforms/artiq_ir_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/compiler/transforms/artiq_ir_generator.py b/artiq/compiler/transforms/artiq_ir_generator.py index afccb5aba..6c64ed555 100644 --- a/artiq/compiler/transforms/artiq_ir_generator.py +++ b/artiq/compiler/transforms/artiq_ir_generator.py @@ -1603,7 +1603,7 @@ class ARTIQIRGenerator(algorithm.Visitor): num_rows, num_summands, _, num_cols = self._get_matmult_shapes(lhs, rhs) elt = result.type["elt"].find() - env_type = ir.TEnvironment("loop", {"$total": elt}) + env_type = ir.TEnvironment(name + ".loop", {"$total": elt}) env = self.append(ir.Alloc([], env_type)) def row_loop(row_idx):