-
Notifications
You must be signed in to change notification settings - Fork 229
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
Conversation
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
.github/workflows/examples.yml
Outdated
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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this 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
ef88733
to
84c4e18
Compare
9294403
to
4c0b0c7
Compare
Temporarily on hold due to: #1528 |
34c7cdd
to
b49ca62
Compare
b49ca62
to
24404ad
Compare
fc984b1
to
d25b756
Compare
843ac3d
to
0b904b3
Compare
examples/misc/linalg.py
Outdated
@@ -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' |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this 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
5662434
to
8e2124c
Compare
Add testing for advanced mode to Linear algebra examples