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

[LinalgToXeGPU] Support conversion for linalg.matmul with transpose_b #340

Closed
dchigarev opened this issue Sep 13, 2024 · 0 comments · Fixed by #347
Closed

[LinalgToXeGPU] Support conversion for linalg.matmul with transpose_b #340

dchigarev opened this issue Sep 13, 2024 · 0 comments · Fixed by #347
Assignees
Labels

Comments

@dchigarev
Copy link
Contributor

dchigarev commented Sep 13, 2024

This can be implemented using xegpu.load_nd %x {transpose = {1, 0}} for B tiles.

We should support both patterns:

  1. Explicit transpose in op linalg.matmul_transpose_b.
  2. Transpose before matmul (this is how MLIR from OV will look like):
    %b_tr = linalg.transpose %b ...
    %res = linalg.matmul %a, %b, ...

This functionality is required for OV integration (#207).

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 a pull request may close this issue.

2 participants