|
17 | 17 | from devito.ir.support.guards import GuardOverflow |
18 | 18 | from devito.symbolics import DefFunction, FieldFromPointer |
19 | 19 | from devito.tools import prod |
| 20 | +from devito.tools.data_structures import frozendict |
20 | 21 | from devito.types import Array, Bundle, CriticalRegion, Jump, Scalar, Symbol |
21 | 22 |
|
22 | 23 |
|
@@ -611,9 +612,9 @@ def test_single_eq(self, expr, expected, ti0, ti1, fa, grid): |
611 | 612 | """ |
612 | 613 | expr = LoweredEq(EVAL(expr, ti0.base, ti1.base, fa)) |
613 | 614 |
|
614 | | - # Force innatural flow, only to stress the compiler to see if it was |
| 615 | + # Force unnatural flow, only to stress the compiler to see if it is |
615 | 616 | # capable of detecting anti-dependences |
616 | | - expr.ispace._directions = {i: Forward for i in expr.ispace.directions} |
| 617 | + expr.ispace._directions = frozendict({i: Forward for i in expr.ispace.directions}) |
617 | 618 |
|
618 | 619 | scope = Scope(expr) |
619 | 620 | deps = scope.d_all |
@@ -709,10 +710,10 @@ def test_multiple_eqs(self, exprs, expected, ti0, ti1, ti3, fa): |
709 | 710 | exprs = [LoweredEq(i) for i in EVAL(exprs, ti0.base, ti1.base, ti3.base, fa)] |
710 | 711 | expected = [tuple(i.split(',')) for i in expected] |
711 | 712 |
|
712 | | - # Force innatural flow, only to stress the compiler to see if it was |
| 713 | + # Force unnatural flow, only to stress the compiler to see if it is |
713 | 714 | # capable of detecting anti-dependences |
714 | 715 | for i in exprs: |
715 | | - i.ispace._directions = {i: Forward for i in i.ispace.directions} |
| 716 | + i.ispace._directions = frozendict({i: Forward for i in i.ispace.directions}) |
716 | 717 |
|
717 | 718 | scope = Scope(exprs) |
718 | 719 | assert len(scope.d_all) == len(expected) |
|
0 commit comments