diff --git a/bin/loopy b/bin/loopy index 830673165b64e84e22940d3d988af13ff3d3ef8b..78e2b86d69e1831ec99f4397a0304d10a9580a98 100644 --- a/bin/loopy +++ b/bin/loopy @@ -150,7 +150,7 @@ def main(): defines_to_python_code(defines_fd.read()) + pre_transform_code) - from floopy.fortran import f2loopy + from loopy.frontend.fortran import f2loopy kernels = f2loopy(target, infile_content, pre_transform_code=pre_transform_code) diff --git a/examples/fortran/run-floopy.sh b/examples/fortran/run-floopy.sh index a56c4bdfffa37b28061dfe3a3e9e5796ccb2ad5f..77c141d4077c1d07a279d5428c1365a5825dd0ff 100755 --- a/examples/fortran/run-floopy.sh +++ b/examples/fortran/run-floopy.sh @@ -3,4 +3,4 @@ NAME="$1" shift -python $(which floopy) --target=cl:0,0 --lang=floopy "$NAME" - "$@" +python $(which loopy) --target=cl:0,0 --lang=floopy "$NAME" - "$@" diff --git a/examples/fortran/run-loopy.sh b/examples/fortran/run-loopy.sh index 55f4a8756dc8eac7a37e552a4c1a5100af08a6fd..d4fb7c2a20c7652052ff196faff8b3285dee3d38 100755 --- a/examples/fortran/run-loopy.sh +++ b/examples/fortran/run-loopy.sh @@ -1,3 +1,3 @@ #! /bin/sh -floopy --target=cl:0,0 --lang=loopy "$1" - +python $(which loopy) --target=cl:0,0 --lang=loopy "$NAME" - "$@" diff --git a/loopy/frontend/fortran/__init__.py b/loopy/frontend/fortran/__init__.py index 20a6d19e69949bd6d318fefe9d83794f401da67a..f09c224d5a4dc9069bfa9e4c7b1180f4304e67e5 100644 --- a/loopy/frontend/fortran/__init__.py +++ b/loopy/frontend/fortran/__init__.py @@ -29,7 +29,7 @@ def f2loopy(target, source, free_form=True, strict=True, tree = api.parse(source, isfree=free_form, isstrict=strict, analyze=False, ignore_comments=False) - from floopy.fortran.translator import F2LoopyTranslator + from loopy.frontend.fortran.translator import F2LoopyTranslator f2loopy = F2LoopyTranslator() f2loopy(tree) diff --git a/loopy/frontend/fortran/expression.py b/loopy/frontend/fortran/expression.py index e5a67193daa1596a38dde8f8ff53680297cb7d6c..b2dddd6a8d3e44707a85e2cfaaaa06606395a103 100644 --- a/loopy/frontend/fortran/expression.py +++ b/loopy/frontend/fortran/expression.py @@ -23,7 +23,7 @@ THE SOFTWARE. """ from pymbolic.parser import Parser as ExpressionParserBase -from floopy.fortran.diagnostic import TranslationError +from loopy.frontend.fortran.diagnostic import TranslationError import pymbolic.primitives as prim import numpy as np diff --git a/loopy/frontend/fortran/translator.py b/loopy/frontend/fortran/translator.py index 5a55cf921e9c440bca13b786e128466cf9df41d0..316c02ff707cabbc782406104a5c9ac65ab9970e 100644 --- a/loopy/frontend/fortran/translator.py +++ b/loopy/frontend/fortran/translator.py @@ -27,8 +27,8 @@ import re import loopy as lp import numpy as np from warnings import warn -from floopy.fortran.tree import FTreeWalkerBase -from floopy.fortran.diagnostic import ( +from loopy.frontend.fortran.tree import FTreeWalkerBase +from loopy.frontend.fortran.diagnostic import ( TranslationError, TranslatorWarning) import islpy as isl from islpy import dim_type diff --git a/loopy/frontend/fortran/tree.py b/loopy/frontend/fortran/tree.py index 102b9cc3ca853005f9848303cea944608f355094..fe25435b79d73d89f84f3a7dc1e5e9a474ef8b6a 100644 --- a/loopy/frontend/fortran/tree.py +++ b/loopy/frontend/fortran/tree.py @@ -27,7 +27,7 @@ import re class FTreeWalkerBase(object): def __init__(self): - from floopy.fortran.expression import FortranExpressionParser + from loopy.frontend.fortran.expression import FortranExpressionParser self.expr_parser = FortranExpressionParser(self) def rec(self, expr, *args, **kwargs):