-
Notifications
You must be signed in to change notification settings - Fork 0
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
settings elements migration #575
Conversation
…/icon4py into settings_elements_migration
…s.py Co-authored-by: Magdalena <[email protected]>
…osition.py Co-authored-by: Magdalena <[email protected]>
Co-authored-by: Magdalena <[email protected]>
Co-authored-by: Magdalena <[email protected]>
…/icon4py into settings_elements_migration
cscs-ci run default |
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.
Can you rerun without those hasattr
calls in grid/icon.py
and grid/base.py
Otherwise I think it is good to go, the rest we can fine tune in another PR.
self.connectivities.update({d: k.astype(gtx.int32) for d, k in connectivity.items()}) | ||
self.connectivities.update( | ||
{ | ||
d: k.ndarray.astype(gtx.int32) if hasattr(k, "ndarray") else k.astype(gtx.int32) |
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.
Can you still remove and rerun without the hasattr
?
d: k.ndarray.astype(gtx.int32) if hasattr(k, "ndarray") else k.astype(gtx.int32) | |
self.connectivities.update({d: k.astype(gtx.int32) for d, k in connectivity.items()}) |
use numpy in Gridfile simplify import in grid_manager.py
Mandatory Tests Please make sure you run these tests via comment before you merge!
Optional Tests To run benchmarks you can use:
To run tests and benchmarks with the DaCe backend you can use:
In case your change might affect downstream icon-exclaim, please consider running
For more detailed information please look at CI in the EXCLAIM universe. |
cscs-ci run default |
launch jenkins spack |
- moved the following elements from `model/common/src/icon4py/model/common/settings.py`to `tools/src/icon4pytools/py2fgen/wrappers/settings.py`: ``` config = Icon4PyConfig() backend = config.gt4py_runner dace_orchestration = config.icon4py_dace_orchestration xp = config.array_ns device = config.device limited_area = config.limited_area ``` - subsequent edit of imports and related in the code - cleanup of left-over stencils backend specification on program definition
- moved the following elements from `model/common/src/icon4py/model/common/settings.py`to `tools/src/icon4pytools/py2fgen/wrappers/settings.py`: ``` config = Icon4PyConfig() backend = config.gt4py_runner dace_orchestration = config.icon4py_dace_orchestration xp = config.array_ns device = config.device limited_area = config.limited_area ``` - subsequent edit of imports and related in the code - cleanup of left-over stencils backend specification on program definition
model/common/src/icon4py/model/common/settings.py
totools/src/icon4pytools/py2fgen/wrappers/settings.py
: