Skip to content

Commit

Permalink
Go again
Browse files Browse the repository at this point in the history
  • Loading branch information
LonelyCat124 committed Jan 29, 2025
1 parent 0b37212 commit 9818e4b
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions examples/nemo/scripts/passthrough.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,19 @@
''' Process Nemo code with PSyclone but don't do any changes. This file is only
needed to provide a FILES_TO_SKIP list. '''
from utils import PASSTHROUGH_ISSUES
# TODO Remove
from psyclone.psyir.transformations import ScalarizationTrans
from psyclone.psyir.nodes import Routine, Loop

# List of all files that psyclone will skip processing
FILES_TO_SKIP = PASSTHROUGH_ISSUES


def trans(_):
def trans(psyir):
''' Don't do any changes. '''
# TODO REMOVE
scalartrans = ScalarizationTrans()
for loop in subroutine.walk(Loop):
scalartrans.apply(loop)
for subroutine in psyir.walk(Routine):
scalartrans = ScalarizationTrans()
for loop in subroutine.walk(Loop):
scalartrans.apply(loop)

0 comments on commit 9818e4b

Please sign in to comment.