-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug[next][dace]: Fix lowering of broadcast #1698
Merged
Merged
Changes from 77 commits
Commits
Show all changes
93 commits
Select commit
Hold shift + click to select a range
0272158
map-reduce for full connectivity
edopao e62bae9
Merge remote-tracking branch 'origin/main' into dace-gtir-map_reduce
edopao 43df0e8
Use correct map index variable
edopao 4b35572
enable test case
edopao e8e37a4
add support for make_const_list
edopao a885de2
Misc fixes for GTIR lowering
edopao 095e28e
add test case
edopao 8fc95a8
minor edit
edopao cca4fcd
undo extra change
edopao 1bb20cd
review comments
edopao be06e9f
Merge remote-tracking branch 'origin/dace-gtir-fixes' into dace-gtir-…
edopao 049b044
Merge remote-tracking branch 'origin/main' into dace-gtir-map_reduce
edopao 4241b23
minor edit
edopao 49f7797
minor edit (1)
edopao 892bca4
remove extra change
edopao fa876c9
minor edit (2)
edopao ed7fd6e
fix return type of dace backend
edopao 986e695
update test case with skip values
edopao f7d84ba
Improved handling of map input edges for fieldop
edopao c90b1cc
Improved handling of map output for fieldop
edopao 7f247fe
review comments
edopao 0f897de
refactoring
edopao 397cede
refactoring
edopao 06fd06f
refactoring (1)
edopao feb0951
review comments
edopao 9c9e7f8
code-style fix
edopao 92bc1a8
undo refactoring changes
edopao 7b8155d
Merge remote-tracking branch 'origin/dace-gtir-refactoring' into dace…
edopao 684e607
Merge remote-tracking branch 'origin/main' into dace-gtir-map_reduce
edopao 1265f93
improve code comments
edopao ee972a6
better lowering of fieldop domain
edopao 171288b
rename field_op to fieldop
edopao 59161c6
Merge remote-tracking branch 'origin/dace-gtir-map_reduce' into dace-…
edopao 6103461
minor unrelated edit
edopao 37d4d8a
working draft
edopao 4334621
review comments
edopao 3e88216
Merge remote-tracking branch 'origin/dace-gtir-map_reduce' into dace-…
edopao 07b5e79
minor edit in preparation to skip_values
edopao d0345c9
rename mask_offset to local_offset
edopao f7cfb57
Merge branch 'dace-gtir-map_reduce' into dace-gtir-map_reduce_skip
edopao bc614fe
add type description
edopao b468e8a
minor code refactoring
edopao 54f5f65
review comments
edopao 874ae00
Merge remote-tracking branch 'origin/dace-gtir-map_reduce' into dace-…
edopao 8b97053
add support for local dim on field arguments
edopao 7061697
use output_connector on map tasklet
edopao e71c283
review comments
edopao 083f6fe
edit code comments
edopao faa7025
Merge remote-tracking branch 'origin/dace-gtir-map_reduce' into dace-…
edopao d4ec7ef
enable testcase
edopao 67ec6f9
Merge branch 'main' into dace-gtir-map_reduce
edopao 2afd8ab
extract helper method _construct_local_view
edopao 875a8fa
Merge remote-tracking branch 'origin/dace-gtir-map_reduce' into dace-…
edopao be7bfa4
code refactoring (use _construct_local_view)
edopao a426a38
make local_offset non-default in Field type
edopao 38c6ee6
Merge remote-tracking branch 'origin/main' into dace-gtir-map_reduce_…
edopao 05dac84
edit code comments
edopao c8bb690
Merge remote-tracking branch 'origin/main' into dace-gtir-map_reduce_…
edopao 05250c8
Fix lowering of nested let-statements
edopao 56d639d
Add lowering of zero-dimensional fields
edopao 96efe23
Add test case for zero-dimensional fields
edopao 55e394b
Review comments
edopao 4afea74
remove extra file
edopao 3a01738
Switch type names DataExpr <-> ValueExpr
edopao 6fc64b1
Change signature of get_map_variable
edopao 35a51a0
Change assert into exception
edopao b3ce505
cleanup prev commit
edopao 13688b3
review comments (1)
edopao e5f3c48
Merge remote-tracking branch 'origin/main' into dace-gtir-map_reduce_…
edopao 8829684
Merge remote-tracking branch 'origin/dace-gtir-map_reduce_skip' into …
edopao 947e8fc
Merge remote-tracking branch 'origin/dace-gtir-map_reduce_skip' into …
edopao 4894831
Merge remote-tracking branch 'origin/main' into dece-gtir-zerodim_fields
edopao 4449f5e
improve parsing of zero-dim args
edopao e64f06a
Merge remote-tracking branch 'origin/main' into dace-gtir-fix_let_stmts
edopao f24778b
fix previous PR
edopao ee60e16
fix pre-commit (1)
edopao e79152a
fix pre-commit (2)
edopao 38e23e2
Avoid bool cast in branch condition expressions
edopao 1c9d193
Revert "improve parsing of zero-dim args"
edopao ddc9604
fix for broadcast expressions
edopao c514765
Merge remote-tracking branch 'origin/main' into dace-gtir-fix_let_stmts
edopao 444bb05
Review comments
edopao b656256
Merge remote-tracking branch 'origin/main' into dece-gtir-zerodim_fields
edopao 274736e
Revert "Revert "improve parsing of zero-dim args""
edopao ccf9406
fix broadcast of fields
edopao 1aa4a72
fix previous commit
edopao 0482c86
Merge remote-tracking branch 'origin/main' into dace-gtir-fix_let_stmts
edopao 007f2ac
edit code comments
edopao b24b3f8
edit code comments
edopao 267fbed
Merge remote-tracking branch 'origin/dace-gtir-fix_let_stmts' into de…
edopao 19eb3c2
Review comments
edopao a532d68
Merge remote-tracking branch 'origin/main' into dece-gtir-zerodim_fields
edopao 496f8f5
avoid type conversion when accessing 0-dim ndarray
edopao File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@egparedes What was the correct pattern for avoiding type conversions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This type conversion is not affecting GT4Py. The GT4Py argument has still type
ts.FieldType
with emptydims
list. This type conversion (zero-dim array to scalar) only affects the argument passed to the SDFG call, because in the SDFG I am representing the zero-dim array as a dace scalar object.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't reviewed the PR so I don't have a lot of context here, but I think Hannes' comment is about extracting the scalar value from the 0d numpy array without changing its type.
ndarray.item()
(https://devdocs.io/numpy~2.0/reference/generated/numpy.ndarray.item) always transforms the numpy scalar to a python scalar, which may change its precision. To avoid this, you should use an empty tuple as index for.__getitem__()
like this.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting, thank you.