Commit 14b9e78
authored
Update gt4py: support for literal precision (#192)
* Update gt4py: support for literal precision
* Actually forwarding literal precision to gt4py
* Exposing type casts and new math functions
* Documentation update
---------
Co-authored-by: Roman Cattaneo <1116746+romanc@users.noreply.github.com>1 parent d414652 commit 14b9e78
File tree
7 files changed
+110
-97
lines changed- docs
- user
- external
- ndsl/dsl
- gt4py
7 files changed
+110
-97
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
| 13 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
- .github/workflows/daily-ci.yml+25-5
- CHANGELOG.md+16-1
- docs/development/ADRs/cartesian/frontend-literal-precision.md+55
- pyproject.toml+9-9
- src/gt4py/cartesian/backend/dace_backend.py+10-4
- src/gt4py/cartesian/backend/pyext_builder.py+11-8
- src/gt4py/cartesian/definitions.py+27-1
- src/gt4py/cartesian/frontend/defir_to_gtir.py+6
- src/gt4py/cartesian/frontend/gtscript_frontend.py+152-22
- src/gt4py/cartesian/frontend/nodes.py+38-1
- src/gt4py/cartesian/gtc/common.py+37
- src/gt4py/cartesian/gtc/cuir/cuir_codegen.py+4
- src/gt4py/cartesian/gtc/dace/oir_to_tasklet.py+11-6
- src/gt4py/cartesian/gtc/dace/utils.py+11-9
- src/gt4py/cartesian/gtc/debug/debug_codegen.py+3-1
- src/gt4py/cartesian/gtc/gtcpp/gtcpp_codegen.py+6
- src/gt4py/cartesian/gtc/passes/gtir_upcaster.py+9-1
- src/gt4py/cartesian/gtc/ufuncs.py+13-1
- src/gt4py/cartesian/gtscript.py+87-31
- src/gt4py/cartesian/utils/base.py+1-2
- src/gt4py/cartesian/utils/meta.py+8
- src/gt4py/next/ffront/field_operator_ast.py+1-1
- src/gt4py/next/ffront/foast_passes/iterable_unpack.py+17-2
- src/gt4py/next/ffront/foast_passes/type_deduction.py+33-4
- src/gt4py/next/ffront/foast_passes/utils.py+29-1
- src/gt4py/next/ffront/foast_to_gtir.py+16-3
- src/gt4py/next/ffront/func_to_foast.py+3-23
- src/gt4py/next/iterator/ir_utils/ir_makers.py+21-4
- src/gt4py/next/iterator/transforms/collapse_list_get.py+8
- src/gt4py/next/program_processors/runners/dace/gtir_dataflow.py+46-45
- src/gt4py/next/program_processors/runners/dace/gtir_to_sdfg.py+14-6
- src/gt4py/next/program_processors/runners/dace/gtir_to_sdfg_concat_where.py-3
- src/gt4py/next/program_processors/runners/dace/gtir_to_sdfg_scan.py-1
- src/gt4py/next/program_processors/runners/dace/transformations/__init__.py+5-6
- src/gt4py/next/program_processors/runners/dace/transformations/auto_optimize.py+20-7
- src/gt4py/next/program_processors/runners/dace/transformations/constants.py+71
- src/gt4py/next/program_processors/runners/dace/transformations/gpu_utils.py+64-11
- src/gt4py/next/program_processors/runners/dace/transformations/local_double_buffering.py+3-1
- src/gt4py/next/program_processors/runners/dace/transformations/loop_blocking.py+4-4
- src/gt4py/next/program_processors/runners/dace/transformations/map_fusion_extended.py+153-40
- src/gt4py/next/program_processors/runners/dace/transformations/map_fusion_utils.py+6-6
- src/gt4py/next/program_processors/runners/dace/transformations/map_promoter.py-1
- src/gt4py/next/program_processors/runners/dace/transformations/move_dataflow_into_if_body.py+5-8
- src/gt4py/next/program_processors/runners/dace/transformations/simplify.py+19-35
- src/gt4py/next/program_processors/runners/dace/transformations/splitting_tools.py+2-1
- src/gt4py/next/program_processors/runners/dace/workflow/common.py+8-7
- src/gt4py/next/program_processors/runners/dace/workflow/decoration.py+12-6
- src/gt4py/next/program_processors/runners/dace/workflow/translation.py+24-8
- src/gt4py/next/type_system/type_specifications.py+11
- src/gt4py/storage/cartesian/layout.py+2-2
- tests/cartesian_tests/integration_tests/multi_feature_tests/stencil_definitions.py+8-4
- tests/cartesian_tests/integration_tests/multi_feature_tests/test_dace_parsing.py+4
- tests/cartesian_tests/integration_tests/multi_feature_tests/test_math_functions.py+71
- tests/cartesian_tests/unit_tests/frontend_tests/test_gtscript_frontend.py+152-4
- tests/cartesian_tests/unit_tests/frontend_tests/test_ir_maker.py+3-1
- tests/cartesian_tests/unit_tests/test_gtc/dace/test_oir_to_tasklet.py+17
- tests/next_tests/integration_tests/feature_tests/ffront_tests/test_execution.py+21
- tests/next_tests/integration_tests/feature_tests/ffront_tests/test_external_local_field.py+44-1
- tests/next_tests/unit_tests/ffront_tests/test_func_to_foast.py+10
- tests/next_tests/unit_tests/program_processor_tests/runners_tests/dace_tests/test_gtir_to_sdfg.py+63
- tests/next_tests/unit_tests/program_processor_tests/runners_tests/dace_tests/transformation_tests/test_constant_substitution.py-1
- tests/next_tests/unit_tests/program_processor_tests/runners_tests/dace_tests/transformation_tests/test_copy_chain_remover.py-1
- tests/next_tests/unit_tests/program_processor_tests/runners_tests/dace_tests/transformation_tests/test_horizontal_map_split_fusion.py+2-1
- tests/next_tests/unit_tests/program_processor_tests/runners_tests/dace_tests/transformation_tests/test_loop_blocking.py+1-2
- tests/next_tests/unit_tests/program_processor_tests/runners_tests/dace_tests/transformation_tests/test_map_buffer_elimination.py+2-2
- tests/next_tests/unit_tests/program_processor_tests/runners_tests/dace_tests/transformation_tests/test_move_dataflow_into_if_body.py-1
- tests/next_tests/unit_tests/program_processor_tests/runners_tests/dace_tests/transformation_tests/test_strides.py-5
- tests/next_tests/unit_tests/program_processor_tests/runners_tests/dace_tests/transformation_tests/test_vertical_map_split_fusion.py+11-3
- uv.lock+41-12
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| 28 | + | |
| 29 | + | |
27 | 30 | | |
28 | 31 | | |
| 32 | + | |
| 33 | + | |
29 | 34 | | |
30 | 35 | | |
31 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
29 | 31 | | |
30 | 32 | | |
| 33 | + | |
| 34 | + | |
31 | 35 | | |
32 | 36 | | |
33 | 37 | | |
34 | 38 | | |
| 39 | + | |
| 40 | + | |
35 | 41 | | |
36 | 42 | | |
37 | 43 | | |
| |||
80 | 86 | | |
81 | 87 | | |
82 | 88 | | |
| 89 | + | |
| 90 | + | |
83 | 91 | | |
84 | 92 | | |
| 93 | + | |
| 94 | + | |
85 | 95 | | |
86 | 96 | | |
87 | 97 | | |
88 | 98 | | |
| 99 | + | |
| 100 | + | |
89 | 101 | | |
90 | 102 | | |
91 | 103 | | |
| |||
0 commit comments