Skip to content
Snippets Groups Projects
Commit 35c8160b authored by Richard Angersbach's avatar Richard Angersbach
Browse files

Minor import fixes

parent 54837529
No related branches found
No related tags found
1 merge request!438Reduction Support
...@@ -62,11 +62,10 @@ from ..ast.vector import PsVecMemAcc ...@@ -62,11 +62,10 @@ from ..ast.vector import PsVecMemAcc
from ..constants import PsConstant from ..constants import PsConstant
from ...types import PsNumericType, PsStructType, PsType from ...types import PsNumericType, PsStructType, PsType
from ..exceptions import PsInputError from ..exceptions import PsInputError
from ..functions import PsMathFunction, MathFunctions from ..functions import PsMathFunction, MathFunctions, NumericLimitsFunctions
from ..exceptions import FreezeError from ..exceptions import FreezeError
import backend.functions from ...codegen.properties import ReductionSymbolProperty
from codegen.properties import ReductionSymbolProperty
ExprLike = ( ExprLike = (
...@@ -207,10 +206,10 @@ class FreezeExpressions: ...@@ -207,10 +206,10 @@ class FreezeExpressions:
# TODO: unsure if sp.Min & sp.Max are mapped by map_Min/map_Max afterwards # TODO: unsure if sp.Min & sp.Max are mapped by map_Min/map_Max afterwards
case "min": case "min":
op = sp.Min op = sp.Min
init_val = backend.functions.NumericLimitsFunctions("min") init_val = NumericLimitsFunctions("min")
case "max": case "max":
op = sp.Max op = sp.Max
init_val = backend.functions.NumericLimitsFunctions("max") init_val = NumericLimitsFunctions("max")
case _: case _:
raise FreezeError(f"Unsupported reduced assignment: {expr.op}.") raise FreezeError(f"Unsupported reduced assignment: {expr.op}.")
......
...@@ -3,7 +3,7 @@ from dataclasses import dataclass ...@@ -3,7 +3,7 @@ from dataclasses import dataclass
from ..field import Field from ..field import Field
from backend.ast.expressions import PsExpression from ..backend.ast.expressions import PsExpression
@dataclass(frozen=True) @dataclass(frozen=True)
......
from .astnodes import ConditionalFieldAccess from .astnodes import ConditionalFieldAccess
from .typed_sympy import TypedSymbol, CastFunc from .typed_sympy import TypedSymbol, CastFunc
from .pointers import mem_acc from .pointers import mem_acc
from .reduction import reduced_assign
from .math import ( from .math import (
prod, prod,
...@@ -34,7 +33,6 @@ from .math import ( ...@@ -34,7 +33,6 @@ from .math import (
__all__ = [ __all__ = [
"ConditionalFieldAccess", "ConditionalFieldAccess",
"reduced_assign",
"TypedSymbol", "TypedSymbol",
"CastFunc", "CastFunc",
"mem_acc", "mem_acc",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment