Skip to content

Commit 2030ecc

Browse files
committed
fixup! Add initial OpenACC port of atm_advance_acoustic_step_work
1 parent d7109c1 commit 2030ecc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/core_atmosphere/dynamics/mpas_atm_time_integration.F

+5-5
Original file line numberDiff line numberDiff line change
@@ -2484,7 +2484,7 @@ subroutine atm_advance_acoustic_step_work(nCells, nEdges, nCellsSolve, cellStart
24842484
!MGD this loop will not be very load balanced with if-test below
24852485

24862486
!$acc parallel default(present)
2487-
!$acc loop gang
2487+
!$acc loop gang worker
24882488
do iEdge=edgeStart,edgeEnd ! MGD do we really just need edges touching owned cells?
24892489

24902490
cell1 = cellsOnEdge(1,iEdge)
@@ -2513,7 +2513,7 @@ subroutine atm_advance_acoustic_step_work(nCells, nEdges, nCellsSolve, cellStart
25132513
else ! this is all that us needed for ru_p update for first acoustic step in RK substep
25142514

25152515
!$acc parallel default(present)
2516-
!$acc loop gang
2516+
!$acc loop gang worker
25172517
do iEdge=edgeStart,edgeEnd ! MGD do we really just need edges touching owned cells?
25182518

25192519
cell1 = cellsOnEdge(1,iEdge)
@@ -2538,13 +2538,13 @@ subroutine atm_advance_acoustic_step_work(nCells, nEdges, nCellsSolve, cellStart
25382538

25392539
if (small_step == 1) then ! initialize here on first small timestep.
25402540
!$acc parallel default(present)
2541-
!$acc loop collapse(2)
2541+
!$acc loop gang worker vector collapse(2)
25422542
do iCell=cellStart,cellEnd
25432543
do k=1,nVertLevels
25442544
rtheta_pp_old(k,iCell) = 0.0
25452545
end do
25462546
end do
2547-
!$acc loop gang
2547+
!$acc loop gang worker
25482548
do iCell=cellSolveStart,cellSolveEnd
25492549
!$acc loop vector
25502550
do k=1,nVertLevels
@@ -2571,7 +2571,7 @@ subroutine atm_advance_acoustic_step_work(nCells, nEdges, nCellsSolve, cellStart
25712571
!$OMP BARRIER
25722572

25732573
!$acc parallel default(present)
2574-
!$acc loop gang private(ts,rs)
2574+
!$acc loop gang worker private(ts,rs)
25752575
do iCell=cellSolveStart,cellSolveEnd ! loop over all owned cells to solve
25762576

25772577
if(specZoneMaskCell(iCell) == 0.0) then ! not specified zone, compute...

0 commit comments

Comments
 (0)