-
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
feat[next]: Optimisations for icon4py #1536
Open
samkellerhals
wants to merge
25
commits into
GridTools:main
Choose a base branch
from
samkellerhals:optimisations-for-icon4py
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
f16d03b
optimise extract_connectivity_args
samkellerhals 4e2a31f
Remove isinstance checks from convert_args
samkellerhals ddf16f1
More small optimisations, and connecitivities caching
samkellerhals 0f364a9
Only do asserts in debug mode
samkellerhals 789b211
Import CuPyArrayField only when cp is available
samkellerhals a674725
Run precommit
samkellerhals f5fe70d
Merge branch 'main' into optimisations-for-icon4py
samkellerhals c5cbe5d
Merge remote-tracking branch 'origin/main' into optimisations-for-ico…
samkellerhals b080621
Merge remote-tracking branch 'samkellerhals/optimisations-for-icon4py…
samkellerhals 4400ede
Merge remote-tracking branch 'origin' into optimisations-for-icon4py
samkellerhals 0829ab4
Add _ensure_is_on_device checks to run tests
samkellerhals e717b33
Place _ensure_is_on_device in right place
samkellerhals d921bca
Add deprecation warning
samkellerhals 33bd45b
Merge branch 'main' of https://github.com/GridTools/gt4py into optimi…
samkellerhals c68b970
Merge branch 'main' into optimisations-for-icon4py
philip-paul-mueller c9c5c8e
Update from main
samkellerhals 9eb29be
Add ConnectivityFields to handler
samkellerhals 8a0793b
Fix typing issues
samkellerhals cef757b
Enable deprecation warning again
samkellerhals 4c90a89
Enable deprecation warning again
samkellerhals da6516d
Add back domain to right place
samkellerhals 54712fb
Add space
samkellerhals a49e341
Remove CupyArrayConnectivityField
samkellerhals 0b2ca6c
Handle connecitivity fields
samkellerhals 2607a81
Always check if it is on device
samkellerhals 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
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.
would functools.singledispatch work?
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 think it could work, however whilst nicer I have the feeling that it would be slower than a simple dictionary lookup.
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 think it would be preferable to sacrifice readability only on the basis of hard evidence.