Skip to content

Fix the TBE cache_precision to fp32 when on ROCm #3672

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

Closed
wants to merge 1 commit into from

Conversation

q10
Copy link
Contributor

@q10 q10 commented Feb 10, 2025

Summary: It was discovered that FP16 cache precision caused a 500x slowdown in performance of split_embedding_nobag_backward_codegen_rowwise_adagrad_unweighted_kernel_warp_per_row_1 kernel on ROCm, so to work around this, we fix cache precision to be FP32 always for the ROCm environment case.

Differential Revision: D69130978

Summary: It was discovered that FP16 cache precision caused a 500x slowdown in performance of `split_embedding_nobag_backward_codegen_rowwise_adagrad_unweighted_kernel_warp_per_row_1` kernel on ROCm, so to work around this, we fix cache precision to be FP32 always for the ROCm environment case.

Differential Revision: D69130978
Copy link

pytorch-bot bot commented Feb 10, 2025

No ciflow labels are configured for this repo.
For information on how to enable CIFlow bot see this wiki

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D69130978

Copy link

netlify bot commented Feb 10, 2025

Deploy Preview for pytorch-fbgemm-docs ready!

Name Link
🔨 Latest commit c6513f9
🔍 Latest deploy log https://app.netlify.com/sites/pytorch-fbgemm-docs/deploys/67aa47884cc58600085c5f1b
😎 Deploy Preview https://deploy-preview-3672--pytorch-fbgemm-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in fc718cf.

q10 added a commit to q10/FBGEMM that referenced this pull request Apr 10, 2025
Summary:
X-link: pytorch#3672

It was discovered that FP16 cache precision caused a 500x slowdown in performance of `split_embedding_nobag_backward_codegen_rowwise_adagrad_unweighted_kernel_warp_per_row_1` kernel on ROCm, so to work around this, we fix cache precision to be FP32 always for the ROCm environment case.

Reviewed By: sryap

Differential Revision: D69130978

fbshipit-source-id: ca904e54fc8446f5517fba5486d7497f49730fa4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants