@@ -1238,7 +1238,6 @@ def test_parallel_prec_inject(self):
12381238
12391239class TestNestedParallelism :
12401240
1241- @skipif ('nointel' )
12421241 def test_basic (self ):
12431242 grid = Grid (shape = (3 , 3 , 3 ))
12441243
@@ -1251,7 +1250,6 @@ def test_basic(self):
12511250 'par-dynamic-work' : 0 }))
12521251
12531252 # Does it compile? Honoring the OpenMP specification isn't trivial
1254- print (op )
12551253 assert op .cfunction
12561254
12571255 # Does it produce the right result
@@ -1271,7 +1269,6 @@ def test_basic(self):
12711269 assert iterations [2 ].pragmas [0 ].ccode .value == \
12721270 'omp parallel for schedule(dynamic,1) num_threads(nthreads_nested)'
12731271
1274- @skipif ('nointel' )
12751272 def test_collapsing (self ):
12761273 grid = Grid (shape = (3 , 3 , 3 ))
12771274
@@ -1280,7 +1277,6 @@ def test_collapsing(self):
12801277
12811278 op = Operator (Eq (u .forward , u + f + 1 ),
12821279 opt = ('blocking' , 'openmp' , {'par-nested' : 0 ,
1283- 'cire-rotate' : True ,
12841280 'par-collapse-ncores' : 1 ,
12851281 'par-collapse-work' : 0 ,
12861282 'par-dynamic-work' : 0 }))
@@ -1374,7 +1370,6 @@ def test_multiple_subnests_v1(self):
13741370 assert trees [- 1 ][3 ].pragmas [0 ].ccode .value == \
13751371 'omp parallel for schedule(dynamic,1) num_threads(nthreads_nested)'
13761372
1377- @skipif ('nointel' )
13781373 @pytest .mark .parametrize ('blocklevels' , [1 , 2 ])
13791374 def test_nested_cache_blocking_structure_subdims (self , blocklevels ):
13801375 """
@@ -1438,7 +1433,6 @@ def test_nested_cache_blocking_structure_subdims(self, blocklevels):
14381433 ('omp parallel for collapse(2) schedule(dynamic,1) '
14391434 'num_threads(nthreads_nested)' )
14401435
1441- @skipif ('nointel' )
14421436 @pytest .mark .parametrize ('exprs,collapsed,scheduling' , [
14431437 (['Eq(u.forward, u.dx)' ], '2' , 'static' ),
14441438 (['Eq(u.forward, u.dy)' ], '2' , 'static' ),
@@ -1471,7 +1465,6 @@ def test_collapsing_w_wo_halo(self, exprs, collapsed, scheduling):
14711465 assert iterations [1 ].pragmas [0 ].ccode .value == \
14721466 "" .join ([ompfor_string , scheduling_string ])
14731467
1474- @skipif ('device' )
14751468 def test_nested_parallelism_support (self ):
14761469 grid = Grid (shape = (10 , 10 , 10 ))
14771470
@@ -1484,7 +1477,9 @@ def test_nested_parallelism_support(self):
14841477 v1 .data_with_halo [:] = 1.
14851478
14861479 eqn = Eq (v .forward , (v .dx * (1 + 2 * f ) * f ).dx )
1487- op = Operator (eqn , opt = ('advanced' , {'openmp' : True , 'par-nested' : 0 }))
1480+ op = Operator (eqn , opt = ('advanced' , {'openmp' : True ,
1481+ 'par-collapse-ncores' : 1 ,
1482+ 'par-nested' : 0 }))
14881483
14891484 bns , _ = assert_blocking (op , {'x0_blk0' })
14901485 trees = retrieve_iteration_tree (bns ['x0_blk0' ])
@@ -1496,7 +1491,7 @@ def test_nested_parallelism_support(self):
14961491 if isinstance (configuration ['compiler' ], (IntelCompiler , OneapiCompiler )):
14971492 # Supports nested parallelism
14981493 assert trees [0 ][2 ].pragmas [0 ].ccode .value == \
1499- '#pragma omp parallel for collapse(2) schedule(dynamic,1)' \
1494+ 'omp parallel for collapse(2) schedule(dynamic,1)' \
15001495 ' num_threads(nthreads_nested)'
15011496 assert trees [1 ][2 ].pragmas [0 ].ccode .value == \
15021497 trees [0 ][2 ].pragmas [0 ].ccode .value
0 commit comments