-
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
Fix CI (0d field slice) #383
Conversation
model/atmosphere/advection/tests/stencil_tests/test_face_val_ppm_stencil_01.py
Show resolved
Hide resolved
Expected argument 'elevp1' to be of type 'int32', got 'int64'.
I would just need some context, what is the error if this fix is not included? |
The latest commit on gt4py introduces a syntax feature. The feature is that if you slice a field with full indexing, the result is still a field, a 0d field specifically. In order to use it as a scalar, the DSL program has to call The question here is what do we mean by stable gt4py version, in the Spack CI job, and if we should provide backwards-compatibility checks like the one proposed in this PR. An alternative to the change proposed in this PR is to use the new syntax (which requires calling |
I would opt for the latter, as long as nobody relies on stable. |
That's OK. In this case, @havogt should we make a gt4py v1.0.4 release or should I make a custom icon4py tag? |
Mandatory Tests Please make sure you run these tests via comment before you merge!
Optional Tests To run benchmarks 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. |
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.
Considering the circumstances, looks good to me.
I do not agree with a field of size 1 not decaying into a scalar, but that is another matter.
cscs-ci run default |
launch jenkins spack |
The latest commit on gt4py introduces a syntax feature: if you slice a field with full indexing, the result is still a field, a 0d field specifically. In order to use it as a scalar, the DSL program has to call
.as_scalar()
. Before this gt4py commit, the result of slicing would have been a scalar.This PR adopts the new gt4py syntax feature. In order to do this, we bump the version of gt4py Spack package in stable CI job to 1.0.3.1.