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

Fix permute_multi_embedding kernel #3227

Closed
wants to merge 1 commit into from

Conversation

xw285cornell
Copy link
Contributor

Summary:
X-link: https://github.com/facebookresearch/FBGEMM/pull/325

Looks like a typo to use permute_id = threadIdx.y + blockIdx.x * blockDim.x which should be blockDim.y. This doesn't affect Nvidia because blockDim.x and y are both 32 (32 threads per warp + 32 warps). For AMD GPU, blockDim.x is 64 and blockDim.y is 16, causing numerical issues.

Reviewed By: leitian, jianyuh, joebos

Differential Revision: D63936776

Summary:
X-link: facebookresearch/FBGEMM#325

Looks like a typo to use `permute_id = threadIdx.y + blockIdx.x * blockDim.x` which should be `blockDim.y`. This doesn't affect Nvidia because blockDim.x and y are both 32 (32 threads per warp + 32 warps). For AMD GPU, blockDim.x is 64 and blockDim.y is 16, causing numerical issues.

Reviewed By: leitian, jianyuh, joebos

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

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

Copy link

netlify bot commented Oct 5, 2024

Deploy Preview for pytorch-fbgemm-docs ready!

Name Link
🔨 Latest commit 657e566
🔍 Latest deploy log https://app.netlify.com/sites/pytorch-fbgemm-docs/deploys/67018032f7187300083b9bab
😎 Deploy Preview https://deploy-preview-3227--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 1815f89.

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