Skip to content

Commit

Permalink
#2845 fix lfric eg2
Browse files Browse the repository at this point in the history
  • Loading branch information
arporter committed Jan 30, 2025
1 parent 2afdc19 commit b0f2c64
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions examples/lfric/eg2/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,20 +40,23 @@ include ../../common.mk

transform: vanilla inline loopfuse

# Location of the stripped-down LFRic infrastructure source
LFRIC_INC_DIR = ../../../src/psyclone/tests/test_files/dynamo0p3/infrastructure

# The '-d ../code' argument specifies that PSyclone should search the
# '../code' directory when looking for user-supplied kernels.

# The '-s my_script.py' argument specifies that PSyclone should apply
# the transformation script 'my_script.py.'

vanilla:
${PSYCLONE} -api lfric -nodm -d ../code -s ./print_psyir_trans.py ./multi_invoke_mod.x90
${PSYCLONE} -api lfric -nodm -d ../code -I${LFRIC_INC_DIR} -s ./print_psyir_trans.py ./multi_invoke_mod.x90

inline:
${PSYCLONE} -api lfric -nodm -d ../code -s ./module_inline_trans.py ./multi_invoke_mod.x90
${PSYCLONE} -api lfric -nodm -d ../code -I${LFRIC_INC_DIR} -s ./module_inline_trans.py ./multi_invoke_mod.x90

loopfuse:
${PSYCLONE} -api lfric -nodm -d ../code -s ./loop_fuse_trans.py ./multi_invoke_mod.x90
${PSYCLONE} -api lfric -nodm -d ../code -I${LFRIC_INC_DIR} -s ./loop_fuse_trans.py ./multi_invoke_mod.x90

compile: transform
@echo "No compilation supported for lfric/eg2"
Expand Down

0 comments on commit b0f2c64

Please sign in to comment.