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

compiler: Patch data dependencies across Jumps #2065

Merged
merged 1 commit into from
Feb 13, 2023

Conversation

FabioLuporini
Copy link
Contributor

No description provided.

mock = f.indexify(indices)
try:
mock = f.indexify(indices)
except IndexException:
Copy link
Contributor

Choose a reason for hiding this comment

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

What would make this fail? Bad indices?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah just empty indices, trivial sympy exception when you attempt to create an Indexed w/o supplying indices 😬

Copy link
Contributor

Choose a reason for hiding this comment

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

Should you add some related message or failing test?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Definitely not a message; probably a unit test...

However, creating an artificial case exciting this code path here w/o PRO will take O(hour) time, which I don't have, so given that this is a minuscule thing and that, after all, we do have a test exciting this in PRO, despite agreeing w/ you this ain't ideal, I suggest we proceed

mock = f.indexify(indices)
try:
mock = f.indexify(indices)
except IndexException:
Copy link
Contributor

Choose a reason for hiding this comment

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

Should you add some related message or failing test?

@codecov
Copy link

codecov bot commented Feb 13, 2023

Codecov Report

Merging #2065 (37e549e) into master (96e618a) will decrease coverage by 0.01%.
The diff coverage is 60.00%.

@@            Coverage Diff             @@
##           master    #2065      +/-   ##
==========================================
- Coverage   87.78%   87.77%   -0.01%     
==========================================
  Files         224      224              
  Lines       38653    38657       +4     
  Branches     5816     5816              
==========================================
+ Hits        33930    33931       +1     
- Misses       4173     4177       +4     
+ Partials      550      549       -1     
Impacted Files Coverage Δ
devito/ir/support/basic.py 92.40% <60.00%> (-0.51%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@FabioLuporini FabioLuporini merged commit 405b113 into master Feb 13, 2023
@FabioLuporini FabioLuporini deleted the hotfix-unexpansion branch February 13, 2023 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants