cartesian: dace backends missing support for casting in variable k offsets #1881
Labels
gt4py.cartesian
Issues concerning the current version with support only for cartesian grids.
module: backend
Related to analysis/backend subpackages
triage: bug
Something isn't working
Description
DaCe backends are currently missing support for casting in
VariableKOffset
. The issue comes from the fact that we "sympify" index computations in the_visit_offsets()
function oftasklet_codegen
.gt4py/src/gt4py/cartesian/gtc/dace/expansion/tasklet_codegen.py
Lines 46 to 49 in 1a46fb0
However, before we "sympify", casts are already translated to dace types, e.g.
dace.int64
and then this isn't plain python anymore and failssympy
's python parser.PR ... puts a mitigation in place to catch casts in indices of type
VariableKOffset
in the DaCe backends. The PR also adds a codgen test whichxfail
for all DaCe backendsThat behavior can be simplified once DaCe backends also support casting in variable k offset expressions.
The text was updated successfully, but these errors were encountered: