Skip to content
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 index conversion int32 vs int64 #555

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

havogt
Copy link
Contributor

@havogt havogt commented Sep 20, 2024

No description provided.

Copy link

Mandatory Tests

Please make sure you run these tests via comment before you merge!

  • cscs-ci run default
  • launch jenkins spack

Optional Tests

To run benchmarks you can use:

  • cscs-ci run benchmark

To run tests and benchmarks with the DaCe backend you can use:

  • cscs-ci run dace

In case your change might affect downstream icon-exclaim, please consider running

  • launch jenkins icon

For more detailed information please look at CI in the EXCLAIM universe.

@@ -187,7 +187,7 @@ def index(self, domain: Domain) -> gtx.int32:
assert (
0 <= index <= self._bottom_level(domain)
), f"vertical index {index} outside of grid levels for {domain.dim}"
return index
return gtx.int32(index)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The problem is 4 lines up, when we do index += domain.offset, and the default initialization to 0 of offset in Domain.
This file seems to require more cleanup and a strategy for doing this as there are sprinkled many gtx.int32 inconsistently...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant