Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions sumpy/codegen.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
import pymbolic.primitives as prim
from loopy.kernel.instruction import Assignment, CallInstruction, make_assignment
from pymbolic.mapper import CSECachingMapperMixin, IdentityMapper, P
from pymbolic.mapper.flattener import FlattenMapper
from pymbolic.typing import ArithmeticExpression, Expression
from pytools import memoize_method

Expand Down Expand Up @@ -753,6 +754,7 @@ def to_loopy_insns(
sympy_conv = SympyToPymbolicMapper()
pymbolic_assignments = [(name, sympy_conv(expr)) for name, expr in assignments]

flat = FlattenMapper()
bdr = BesselDerivativeReplacer()
btog = BesselTopOrderGatherer()
vcr = VectorComponentRewriter(vector_names)
Expand All @@ -762,6 +764,7 @@ def to_loopy_insns(
cmr = ComplexRewriter(complex_dtype)

def cmb_mapper(expr: Expression, /) -> Expression:
expr = flat(expr)
expr = bdr(expr)
expr = vcr(expr)
expr = pwr(expr)
Expand Down
2 changes: 1 addition & 1 deletion sumpy/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ def _parse_version(version: str) -> tuple[tuple[int, ...], str]:
VERSION, VERSION_STATUS = _parse_version(VERSION_TEXT)

_GIT_REVISION = find_module_git_revision(__file__, n_levels_up=1)
KERNEL_VERSION = (*VERSION, _GIT_REVISION, 1)
KERNEL_VERSION = (*VERSION, _GIT_REVISION, 2)