forked from M-Labs/artiq
1
0
Fork 0

compiler: Fix collision of environments in matmult implementations

GitHub: Fixes #1578.
This commit is contained in:
David Nadlinger 2021-01-11 23:53:44 +01:00
parent 362f8ecb69
commit f0284b2549
1 changed files with 1 additions and 1 deletions

View File

@ -1603,7 +1603,7 @@ class ARTIQIRGenerator(algorithm.Visitor):
num_rows, num_summands, _, num_cols = self._get_matmult_shapes(lhs, rhs) num_rows, num_summands, _, num_cols = self._get_matmult_shapes(lhs, rhs)
elt = result.type["elt"].find() 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)) env = self.append(ir.Alloc([], env_type))
def row_loop(row_idx): def row_loop(row_idx):