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: Default to index-mode=int32 #2399

Merged
merged 1 commit into from
Jul 8, 2024
Merged

compiler: Default to index-mode=int32 #2399

merged 1 commit into from
Jul 8, 2024

Conversation

FabioLuporini
Copy link
Contributor

@FabioLuporini FabioLuporini commented Jul 4, 2024

This is based #2396 hence the huge diff, otherwise it's just ~15 lines change

This is the diff: 7f6762a

Copy link

codecov bot commented Jul 4, 2024

Codecov Report

Attention: Patch coverage is 80.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 86.72%. Comparing base (156db8e) to head (f61e208).

Files Patch % Lines
devito/types/dense.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2399      +/-   ##
==========================================
- Coverage   86.74%   86.72%   -0.02%     
==========================================
  Files         235      235              
  Lines       44521    44521              
  Branches     8242     8242              
==========================================
- Hits        38619    38611       -8     
- Misses       5177     5189      +12     
+ Partials      725      721       -4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@georgebisbas georgebisbas left a comment

Choose a reason for hiding this comment

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

The b2b diff looks ok

configuration.add('autopadding', False, [False, True])
def _preprocess_autopadding(v):
return {
'0': False,
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this also need a {False: False} mapping?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

no

>>> False == 0
True
>>> hash(False) == hash(0)
True

@@ -2,6 +2,7 @@
from functools import cached_property

from sympy import S
import sympy
Copy link
Contributor

Choose a reason for hiding this comment

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

Nitpick: could you not import Interval and Vector from SymPy on the line above? It would remove this line and tidy up some of the other code

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I could, but don't want to, for clarity. We have our own Interval and Vector too

@@ -569,7 +574,8 @@ def next(self, prefix, d, clusters):
class SynthesizeSkewing(Queue):

"""
Construct a new sequence of clusters with skewed expressions and iteration spaces.
Construct a new sequence of clusters with skewed expressions and
Copy link
Contributor

Choose a reason for hiding this comment

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

Not a comment purely curiosity, but what is "skewing" in this context?

Copy link
Contributor

Choose a reason for hiding this comment

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

This is some pre-requisite for generating loops for temporal blocking.
You may find more info on this here if interested:

https://link.springer.com/content/pdf/10.1007/BF01407876.pdf

"""
Proxy for `abstract_object`.
"""
# Expose hidden objects for complete reconstruction
objects = []
Copy link
Contributor

Choose a reason for hiding this comment

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

If order doesn't matter, then deepcopying objects0 or using objects = list(object0) instead of initialising an empty list would remove the objects.append(i) line

AbstractIncrDimension: 3,
BlockDimension: 4,
}
keys = [Bundle, Array, DiscreteFunction, AbstractIncrDimension, BlockDimension]
Copy link
Contributor

Choose a reason for hiding this comment

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

Nitpick: worth making this a tuple?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

note that these comments belong to the parent PR as per this PR's description

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@mloubout mloubout merged commit f518eb3 into master Jul 8, 2024
30 of 31 checks passed
@mloubout mloubout deleted the heuristic-int32 branch July 8, 2024 17:07
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.

4 participants