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: Tweak device-aware blocking #2348

Merged
merged 2 commits into from
Apr 9, 2024
Merged

Conversation

FabioLuporini
Copy link
Contributor

No description provided.

@FabioLuporini FabioLuporini added the bug-C bug in the generated code label Apr 8, 2024
Copy link

codecov bot commented Apr 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.44%. Comparing base (c836e03) to head (a26db7c).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2348   +/-   ##
=======================================
  Coverage   79.43%   79.44%           
=======================================
  Files         232      232           
  Lines       43571    43587   +16     
  Branches     8068     8070    +2     
=======================================
+ Hits        34611    34627   +16     
  Misses       8204     8204           
  Partials      756      756           

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

@@ -216,6 +217,26 @@ def test_cache_blocking_structure_optrelax_customdim():
'd,x0_blk0,y0_blk0,z0_blk0,x,y,z')


def test_cache_blocking_structure_optrelax_defaultdim_alone():
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 a horrible test name. How about test_blocking_defaultdim_blockrelax? Failing that, give it a shorter name and add a docstring explaining what it does.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

believe it or not (check the upcoming commit time) I had already changed all those test names!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

don't check the commit time because I had to rebase to address your other comment below. So you've to do with faith this time


op = Operator(eqn, opt=('advanced', {'blockrelax': 'device-aware'}))

_, _ = assert_blocking(op, {'d0_blk0', 'x0_blk0'})
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do you need to create dummy variables here? Could you not just have assert_blocking(op, {'d0_blk0', 'x0_blk0'}) on its own?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

copy-paste leftover

@FabioLuporini FabioLuporini merged commit 3a8c46e into master Apr 9, 2024
31 checks passed
@FabioLuporini FabioLuporini deleted the fix-kernel-offload branch April 9, 2024 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-C bug in the generated code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants