-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor[next][dace]: normalize SDFG field type with local dimension (#…
…1808) Fields with a local dimension can be passed as program arguments. The corresponding `FieldType` parameter type in GTIR contains the local dimension in the list of field domain dimensions, while the data type of the field elements is `ScalarType`. For example: `ts.FieldType(dims=[Vertex, V2EDim], dtype=FLOAT_TYPE)` where: ``` V2EDim = gtx.Dimension("V2E", kind=gtx.DimensionKind.LOCAL) FLOAT_TYPE = ts.ScalarType(kind=ts.ScalarKind.FLOAT64) ``` Except for the program arguments, the internal representation in the SDFG lowering should only contain global dimensions in the field domain, and use `ListType` for the element type in case of a list of values: `ts.FieldType(dims=[Vertex], dtype=ts.ListType(element_type=FLOAT_TYPE, offset_type=V2EDim))` With this PR, the normalized form is used across the SDFG lowering. The `make_field` helper method is modified to convert the type definition of field arguments to the normalized form.
- Loading branch information
Showing
3 changed files
with
60 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters