-
Notifications
You must be signed in to change notification settings - Fork 25
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
[TKW] Igemm opt #203
base: main
Are you sure you want to change the base?
[TKW] Igemm opt #203
Conversation
@@ -757,14 +757,14 @@ def test_igemm_conv(n, h, w, c, hf, wf, nf, stride, mem_space, layout, request): | |||
inputs={ | |||
N: i // SZ_OUT, | |||
C: j // (HF * WF), | |||
H: (i % SZ_OUT) % W_OUT * stride + (j % (HF * WF)) % WF, | |||
W: (i % SZ_OUT) // W_OUT * stride + (j % (HF * WF)) // WF, | |||
W: (i % SZ_OUT) % W_OUT * stride + (j % (HF * WF)) % WF, |
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.
was this a bug? how were the tests passing if we had H and W switched?
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 changes how we unroll conv window (rows vs colums first), it should produce semantically equivalent result as long as it synchronized between all mapping. But it also affects memory access pattern and this way it's slightly faster.
tests/kernel/wave/wave_e2e_test.py
Outdated
constraints += [tkw.WorkgroupConstraint(M, BLOCK_M, 1)] | ||
constraints += [tkw.WorkgroupConstraint(NF, BLOCK_N, 0)] | ||
constraints += [tkw.WaveConstraint(M, BLOCK_M / 2)] | ||
constraints += [tkw.WaveConstraint(NF, BLOCK_N / 2)] |
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.
If you update the wave constraint, you also have to update the waves_per_block to be (2, 2, 1)
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.
done
Signed-off-by: Ivan Butygin <[email protected]>
Signed-off-by: Ivan Butygin <[email protected]>
Signed-off-by: Ivan Butygin <[email protected]>
Signed-off-by: Ivan Butygin <[email protected]>
This reverts commit 4b8cd0c. Signed-off-by: Ivan Butygin <[email protected]>
Signed-off-by: Ivan Butygin <[email protected]>
Signed-off-by: Ivan Butygin <[email protected]>
Signed-off-by: Ivan Butygin <[email protected]>
Signed-off-by: Ivan Butygin <[email protected]>
Signed-off-by: Ivan Butygin <[email protected]>
Signed-off-by: Ivan Butygin <[email protected]>
Signed-off-by: Ivan Butygin <[email protected]>
Signed-off-by: Ivan Butygin <[email protected]>
Signed-off-by: Ivan Butygin <[email protected]>
No description provided.