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

Run mkldnn matmul in SPR for bf32 #125386

Open
akote123 opened this issue May 2, 2024 · 1 comment
Open

Run mkldnn matmul in SPR for bf32 #125386

akote123 opened this issue May 2, 2024 · 1 comment
Labels
module: intel Specific to x86 architecture module: mkldnn Related to Intel IDEEP or oneDNN (a.k.a. mkldnn) integration triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module

Comments

@akote123
Copy link

akote123 commented May 2, 2024

In torch 2.3.0, With Reference to 0ae952d, want to mkldnn bf32 matmul in sapphire rapids but the default path is mkl. How I can enable this in SPR?

cc: @zhuhaozhe , @jgong5

Thank you

cc @gujinghui @PenghuiCheng @XiaobingSuper @jianyuh @jgong5 @mingfeima @sanchitintel @ashokei @jingxu10 @min-jean-cho @yanbing-j @Guobing-Chen @Xia-Weiwen @snadampal @frank-wei

@drisspg drisspg added module: mkldnn Related to Intel IDEEP or oneDNN (a.k.a. mkldnn) integration module: intel Specific to x86 architecture triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module labels May 3, 2024
@jgong5
Copy link
Collaborator

jgong5 commented May 6, 2024

In torch 2.3.0, With Reference to 0ae952d, want to mkldnn bf32 matmul in sapphire rapids but the default path is mkl. How I can enable this in SPR?

After you do torch.set_float32_matmul_precision("medium"), the mkldnn path will be used for float32 matmul computed with bf16.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: intel Specific to x86 architecture module: mkldnn Related to Intel IDEEP or oneDNN (a.k.a. mkldnn) integration triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module
Projects
None yet
Development

No branches or pull requests

3 participants