Skip to content

Optimize tbe_input_combine_with_length_cuda on AMD #4430

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

JChunX
Copy link
Contributor

@JChunX JChunX commented Jul 1, 2025

Summary:
DPER frontend benchmark show tbe_input_combine_with_length_cuda as one of the top contributors to local net latency on CMF fully remote model. Especially on AMD, where latency for this kernel is ~2x of NVIDIA (albeit AMD executes with more kernels in parallel).

VEC_WIDTH=32 Increase items processed on AMD per thread, improving memory access patterns and taking advantage of AMD GPU larger memory bandwidth.

Differential Revision: D75886673

Copy link

netlify bot commented Jul 1, 2025

Deploy Preview for pytorch-fbgemm-docs ready!

Name Link
🔨 Latest commit c7d94bb
🔍 Latest deploy log https://app.netlify.com/projects/pytorch-fbgemm-docs/deploys/68657e01dff42b000800d88a
😎 Deploy Preview https://deploy-preview-4430--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 project configuration.

@facebook-github-bot
Copy link
Contributor

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

@JChunX JChunX force-pushed the export-D75886673 branch 2 times, most recently from 3cd28ce to 0f2c26c Compare July 2, 2025 18:24
@facebook-github-bot
Copy link
Contributor

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

@JChunX JChunX force-pushed the export-D75886673 branch from 0f2c26c to 50880c9 Compare July 2, 2025 18:28
Summary:
Pull Request resolved: pytorch#4430

X-link: facebookresearch/FBGEMM#1496

DPER frontend benchmark show tbe_input_combine_with_length_cuda as one of the top contributors to local net latency on CMF fully remote model. Especially on AMD, where latency for this kernel is ~2x of NVIDIA (albeit AMD executes with more kernels in parallel).

VEC_WIDTH=32 Increase items processed on AMD per thread, improving memory access patterns and taking advantage of AMD GPU larger memory bandwidth.

Reviewed By: q10

Differential Revision: D75886673
@facebook-github-bot
Copy link
Contributor

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

@JChunX JChunX force-pushed the export-D75886673 branch from 50880c9 to c7d94bb Compare July 2, 2025 18:44
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