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: Check DeviceFunctions for SubDimensions #2279

Merged
merged 2 commits into from
Dec 11, 2023
Merged

Conversation

EdCaunt
Copy link
Contributor

@EdCaunt EdCaunt commented Dec 8, 2023

Slight improvement to the coverage of abridge_dim_names as a couple of things were getting missed.

Copy link

codecov bot commented Dec 8, 2023

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (b95947e) 86.82% compared to head (054f34f) 86.82%.

Files Patch % Lines
devito/passes/iet/misc.py 88.23% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2279      +/-   ##
==========================================
- Coverage   86.82%   86.82%   -0.01%     
==========================================
  Files         229      229              
  Lines       42441    42450       +9     
  Branches     7868     7870       +2     
==========================================
+ Hits        36851    36858       +7     
- Misses       4931     4933       +2     
  Partials      659      659              

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

@mloubout mloubout added the CI continuous integration label Dec 8, 2023
if d.root not in dimensions
and names.count(d.root.name) < 2}

if isinstance(iet, DeviceFunction):
Copy link
Contributor

Choose a reason for hiding this comment

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

Might be better off lifting out rename_subdims and single dispatch on iet

Copy link
Contributor

Choose a reason for hiding this comment

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

I agree

You may call it _abridge_subdim_names should we ever wanted to extend abdridging with more sort of objects (or use it to rename Temps such that they appear in order, for example)

I also agree we need singledispatch here

Copy link
Contributor

@FabioLuporini FabioLuporini left a comment

Choose a reason for hiding this comment

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

GTG now, thanks

@mloubout mloubout merged commit 9810a8f into master Dec 11, 2023
31 checks passed
@mloubout mloubout deleted the dim_abridging_fix branch December 11, 2023 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI continuous integration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants