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

tests: Add optimizations to linalg examples #1529

Merged
merged 1 commit into from
Apr 30, 2021
Merged

Conversation

georgebisbas
Copy link
Contributor

@georgebisbas georgebisbas commented Dec 4, 2020

Add testing for advanced mode to Linear algebra examples

@codecov
Copy link

codecov bot commented Dec 4, 2020

Codecov Report

Merging #1529 (49f56d1) into master (a8a33dc) will decrease coverage by 26.75%.
The diff coverage is 52.05%.

❗ Current head 49f56d1 differs from pull request most recent head 8e2124c. Consider uploading reports for the commit 8e2124c to get more accurate results
Impacted file tree graph

@@             Coverage Diff             @@
##           master    #1529       +/-   ##
===========================================
- Coverage   86.67%   59.92%   -26.76%     
===========================================
  Files         218      202       -16     
  Lines       33225    31835     -1390     
  Branches     4326     4140      -186     
===========================================
- Hits        28799    19077     -9722     
- Misses       3940    12169     +8229     
- Partials      486      589      +103     
Impacted Files Coverage Δ
tests/test_symbolics.py 24.07% <ø> (-75.93%) ⬇️
tests/test_gpu_common.py 1.90% <4.34%> (+0.10%) ⬆️
tests/test_dse.py 13.08% <9.09%> (-86.68%) ⬇️
tests/test_lower_exprs.py 11.82% <14.89%> (-85.08%) ⬇️
devito/passes/equations/linearity.py 85.34% <85.57%> (-11.29%) ⬇️
devito/passes/iet/parpragma.py 82.88% <94.73%> (-8.38%) ⬇️
devito/finite_differences/derivative.py 70.12% <100.00%> (-16.22%) ⬇️
devito/passes/iet/misc.py 87.95% <100.00%> (-3.62%) ⬇️
devito/symbolics/manipulation.py 87.74% <100.00%> (-2.99%) ⬇️
devito/types/sparse.py 77.04% <100.00%> (-12.04%) ⬇️
... and 147 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a8a33dc...8e2124c. Read the comment docs.

@georgebisbas georgebisbas changed the title [WIP_TEST] examples: check reductions examples: check reductions with --optimize Dec 7, 2020
@georgebisbas georgebisbas self-assigned this Dec 7, 2020
python examples/misc/linalg.py mat-mat-sum --optimize
python examples/misc/linalg.py mat-mat --optimize
python examples/misc/linalg.py mat-vec --optimize
python examples/misc/linalg.py transpose-mat-vec --optimize
Copy link
Contributor

Choose a reason for hiding this comment

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

what does this do again?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Checks the linalg with advanced, it was noop only before.

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.

as discussed offline, we should either made the command a one liner or drop the --optimize argument by defaulting to advanced

@georgebisbas georgebisbas force-pushed the misc_linalg branch 3 times, most recently from 9294403 to 4c0b0c7 Compare January 7, 2021 11:20
@georgebisbas
Copy link
Contributor Author

Temporarily on hold due to: #1528

@georgebisbas georgebisbas force-pushed the misc_linalg branch 2 times, most recently from 34c7cdd to b49ca62 Compare February 10, 2021 12:13
@georgebisbas georgebisbas force-pushed the misc_linalg branch 2 times, most recently from fc984b1 to d25b756 Compare April 23, 2021 20:04
@georgebisbas georgebisbas changed the title examples: check reductions with --optimize examples: Add advanced mode test to linalg examples Apr 26, 2021
@@ -24,7 +24,7 @@ def callback_shape(ctx, param, value):

def callback_opts(ctx, param, value):
if value is True:
return ('blocking', 'simd', 'openmp', {'blockinner': True})
return 'advanced'
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 not doing the same blocking/simd as master, because blockinner: True is dropped. Why?

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 vaguely remember that we talked about this in the past, maybe I am wrong....hmmm.. or it was due to the fact that no blocking happening nevertheless? Anyway reinstated.

@georgebisbas georgebisbas changed the title examples: Add advanced mode test to linalg examples examples: Add optmizations testing to linalg examples Apr 29, 2021
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.

Two commits for such a tiny change -> they need rebasing and squashing

@FabioLuporini FabioLuporini changed the title examples: Add optmizations testing to linalg examples tests: Add optmizations testing to linalg examples Apr 30, 2021
@FabioLuporini FabioLuporini changed the title tests: Add optmizations testing to linalg examples tests: Add optimizations to linalg examples Apr 30, 2021
@FabioLuporini FabioLuporini merged commit 118f6b6 into master Apr 30, 2021
@FabioLuporini FabioLuporini deleted the misc_linalg branch April 30, 2021 13:08
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