Skip to content

improve write performance by ~10x #4277

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

steven1327
Copy link

Summary: we used [] to get a pointer to ith entry in weights. This is very slow. In this diff, we use raw pointer access to get the ith pointer. This improve the write performance by 10x and bring write performance on the same scale as read performance.

Reviewed By: q10

Differential Revision: D76073692

Copy link

netlify bot commented Jun 5, 2025

Deploy Preview for pytorch-fbgemm-docs ready!

Name Link
🔨 Latest commit a344996
🔍 Latest deploy log https://app.netlify.com/projects/pytorch-fbgemm-docs/deploys/68433329a987af0008ff533a
😎 Deploy Preview https://deploy-preview-4277--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: D76073692

steven1327 pushed a commit to steven1327/FBGEMM-1 that referenced this pull request Jun 6, 2025
Summary:

X-link: facebookresearch/FBGEMM#1354

we used [] to get a pointer to ith entry in weights. This is very slow. In this diff, we use raw pointer access to get the ith pointer. This improve the write performance by 10x and bring write performance on the same scale as read performance.

Reviewed By: q10

Differential Revision: D76073692
steven1327 pushed a commit to steven1327/FBGEMM-1 that referenced this pull request Jun 6, 2025
Summary:

X-link: facebookresearch/FBGEMM#1354

we used [] to get a pointer to ith entry in weights. This is very slow. In this diff, we use raw pointer access to get the ith pointer. This improve the write performance by 10x and bring write performance on the same scale as read performance.

Reviewed By: q10

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

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

steven1327 pushed a commit to steven1327/FBGEMM-1 that referenced this pull request Jun 6, 2025
Summary:
Pull Request resolved: pytorch#4277

X-link: facebookresearch/FBGEMM#1354

we used [] to get a pointer to ith entry in weights. This is very slow. In this diff, we use raw pointer access to get the ith pointer. This improve the write performance by 10x and bring write performance on the same scale as read performance.

Reviewed By: q10

Differential Revision: D76073692
Summary:
Pull Request resolved: pytorch#4277

X-link: facebookresearch/FBGEMM#1354

we used [] to get a pointer to ith entry in weights. This is very slow. In this diff, we use raw pointer access to get the ith pointer. This improve the write performance by 10x and bring write performance on the same scale as read performance.

Reviewed By: q10

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

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 7a913d5.

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