Skip to content

Commit

Permalink
stfc#2070 ACC async_queue via mixins
Browse files Browse the repository at this point in the history
  • Loading branch information
svalat committed Sep 11, 2023
1 parent a13d987 commit 8a8d0f8
Show file tree
Hide file tree
Showing 9 changed files with 670 additions and 27 deletions.
2 changes: 1 addition & 1 deletion src/psyclone/domain/lfric/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,4 @@
'LFRicExtractDriverCreator',
'LFRicInvoke',
'LFRicLoopBounds',
'LFRicSymbolTable']
'LFRicSymbolTable']
7 changes: 3 additions & 4 deletions src/psyclone/domain/lfric/lfric_loop_bounds.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
# Modified J. Henrichs, Bureau of Meteorology
# Modified A. B. G. Chalk and N. Nobre, STFC Daresbury Lab

''' This module provides the LFRicLoopBounds Class that handles all variables
''' This module provides the LFRicLoopBounds Class that handles all variables
required for specifying loop limits within an LFRic PSy-layer routine.'''

# Imports
Expand All @@ -46,9 +46,8 @@


class LFRicLoopBounds(LFRicCollection):

'''
Handles all variables required for specifying loop limits within
'''
Handles all variables required for specifying loop limits within
an LFRic PSy-layer routine.
'''

Expand Down
5 changes: 4 additions & 1 deletion src/psyclone/f2pygen.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,10 @@ class ACCDirective(Directive):
'loop').
'''
def __init__(self, root, line, position, dir_type):
self._types = ["parallel", "kernels", "enter data", "loop", "routine"]
self._types = [
"parallel", "kernels", "enter data", "loop", "routine",
"wait"
]
self._positions = ["begin", "end"]

super(ACCDirective, self).__init__(root, line, position, dir_type)
Expand Down
3 changes: 2 additions & 1 deletion src/psyclone/psyir/nodes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@
from psyclone.psyir.nodes.acc_directives import ACCDirective, \
ACCLoopDirective, ACCEnterDataDirective, ACCParallelDirective, \
ACCKernelsDirective, ACCDataDirective, ACCUpdateDirective, \
ACCStandaloneDirective, ACCRegionDirective, ACCRoutineDirective
ACCStandaloneDirective, ACCRegionDirective, ACCRoutineDirective, \
ACCWaitDirective
from psyclone.psyir.nodes.omp_directives import OMPDirective, OMPDoDirective, \
OMPParallelDirective, OMPParallelDoDirective, OMPSingleDirective, \
OMPMasterDirective, OMPSerialDirective, OMPTaskloopDirective, \
Expand Down
Loading

0 comments on commit 8a8d0f8

Please sign in to comment.