-
Notifications
You must be signed in to change notification settings - Fork 231
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: Yet another batch of compilation tweaks #2396
Changes from 1 commit
3f63463
875af51
887bbf0
4ab1f1c
b658103
dad8dc8
cba2ea9
60f5d43
1566fec
ad63a44
a5955a1
660a438
bd7c628
c988fa9
0851d5c
afe0719
efa27df
2d0f60a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -611,4 +611,4 @@ def test_different_dtype(): | |
|
||
# Check generated code has different strides for different dtypes | ||
assert "bL0(x,y) b[(x)*y_stride0 + (y)]" in str(op1) | ||
assert "L0(x,y) f[(x)*y_stride1 + (y)]" in str(op1) | ||
assert "L0(x,y) f[(x)*y_stride0 + (y)]" in str(op1) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we parametrize this test with autopadding so There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it's not possible by construction anymore; autopadding is now a global choice, in essence. This means that if you have an fp32 and an fp64 the data will be padded to either fp32 or fp64; in the former case, the performance will be suboptimal. But regardless, we will always only generate one stride per dimension. See That said, I've now parametrized the test as you suggested, but the expected outcome is always |
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.
Could shorten to:
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.
right, fixing