@@ -142,7 +142,7 @@ def test_parameters(self):
142142 a_dense = Function (name = 'a_dense' , grid = grid )
143143 const = Constant (name = 'constant' )
144144 eqn = Eq (a_dense , a_dense + 2. * const )
145- op = Operator (eqn , openmp = False )
145+ op = Operator (eqn , opt = ( 'advanced' , { 'openmp' : False }) )
146146 assert len (op .parameters ) == 5
147147 assert op .parameters [0 ].name == 'a_dense'
148148 assert op .parameters [0 ].is_AbstractFunction
@@ -738,7 +738,7 @@ def test_default_functions(self):
738738 grid = Grid (shape = (5 , 6 , 7 ))
739739 f = TimeFunction (name = 'f' , grid = grid )
740740 g = Function (name = 'g' , grid = grid )
741- op = Operator (Eq (f .forward , g + f ), openmp = False )
741+ op = Operator (Eq (f .forward , g + f ), opt = ( 'advanced' , { 'openmp' : False }) )
742742
743743 expected = {
744744 'x_m' : 0 , 'x_M' : 4 ,
@@ -1875,7 +1875,7 @@ def test_barrier_halts_topofuse(self):
18751875
18761876 # No surprises here -- the third equation gets swapped with the second
18771877 # one so as to be fused with the first equation
1878- op0 = Operator (eqns0 , openmp = True )
1878+ op0 = Operator (eqns0 , opt = ( 'advanced' , { 'openmp' : True }) )
18791879 assert_structure (op0 , ['t,x,y,z' , 't' , 't,z' ], 't,x,y,z,z' )
18801880
18811881 class DummyBarrier (sympy .Function , Barrier ):
@@ -1884,14 +1884,14 @@ class DummyBarrier(sympy.Function, Barrier):
18841884 eqns1 = list (eqns0 )
18851885 eqns1 [1 ] = Eq (Symbol ('dummy' ), DummyBarrier (time ))
18861886
1887- op1 = Operator (eqns1 , openmp = True )
1887+ op1 = Operator (eqns1 , opt = ( 'advanced' , { 'openmp' : True }) )
18881888 assert_structure (op1 , ['t,x,y,z' , 't' , 't,x,y,z' ], 't,x,y,z,x,y,z' )
18891889
18901890 # Again, but now a swap is performed *before* the barrier so it's legal
18911891 eqns2 = list (eqns0 )
18921892 eqns2 .append (eqns1 [1 ])
18931893
1894- op2 = Operator (eqns2 , openmp = True )
1894+ op2 = Operator (eqns2 , opt = ( 'advanced' , { 'openmp' : True }) )
18951895 assert_structure (op2 , ['t,x,y,z' , 't' , 't,z' ], 't,x,y,z,z' )
18961896
18971897 def test_array_shared_w_topofuse (self ):
@@ -1913,7 +1913,7 @@ def test_array_shared_w_topofuse(self):
19131913 # For thread-shared Arrays, WAR dependencies shouldn't prevent topo-fusion
19141914 # opportunities, since they're not really WAR's as classic Lamport
19151915 # theory would tag
1916- op = Operator (eqns , openmp = True )
1916+ op = Operator (eqns , opt = ( 'advanced' , { 'openmp' : True }) )
19171917 assert_structure (op , ['x,y' , 'i,x,y' ], 'x,y,i,x,y' )
19181918
19191919 def test_topofuse_w_numeric_dim (self ):
0 commit comments