Skip to content

Eliminate MemCpyDtoH overhead for quantized fast_gemv kernel #3725

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

YUNQIUGUO
Copy link
Contributor

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

As title.

Previously w_scale.item() will create unnecessary DeviceToHost memcpy operations thus introduces big gaps in between each gemv kernel launch call

{F1975359276}

Fixed in this diff and other minor updates.

Differential Revision: D70072967

@facebook-github-bot
Copy link
Contributor

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

Copy link

netlify bot commented Feb 24, 2025

Deploy Preview for pytorch-fbgemm-docs ready!

Name Link
🔨 Latest commit 2ec1051
🔍 Latest deploy log https://app.netlify.com/sites/pytorch-fbgemm-docs/deploys/67bd0131fbab66000875c458
😎 Deploy Preview https://deploy-preview-3725--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.

YUNQIUGUO added a commit to YUNQIUGUO/FBGEMM that referenced this pull request Feb 24, 2025
…#3725)

Summary:

X-link: facebookresearch/FBGEMM#808

As title.

Previously `w_scale.item()` will create unnecessary DeviceToHost memcpy operations thus introduces big gaps in between each gemv kernel launch call

 {F1975359276}

Fixed in this diff and other minor updates.

Differential Revision: D70072967
YUNQIUGUO added a commit to YUNQIUGUO/FBGEMM that referenced this pull request Feb 24, 2025
…#3725)

Summary:

X-link: facebookresearch/FBGEMM#808

As title.

Previously `w_scale.item()` will create unnecessary DeviceToHost memcpy operations thus introduces big gaps in between each gemv kernel launch call

 {F1975359276}

Fixed in this diff and other minor updates.

Differential Revision: D70072967
@YUNQIUGUO YUNQIUGUO force-pushed the export-D70072967 branch 2 times, most recently from 25b2d7a to 74981f7 Compare February 24, 2025 19:11
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

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

…#3725)

Summary:

X-link: facebookresearch/FBGEMM#808

As title.

Previously `w_scale.item()` will create unnecessary DeviceToHost memcpy operations thus introduces big gaps in between each gemv kernel launch call

 {F1975359276}

Fixed in this diff and other minor updates.

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

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 1529564.

q10 pushed a commit to q10/FBGEMM that referenced this pull request Apr 10, 2025
…#808)

Summary:
X-link: pytorch#3725

Pull Request resolved: facebookresearch/FBGEMM#808

As title.

Previously `w_scale.item()` will create unnecessary DeviceToHost memcpy operations thus introduces big gaps in between each gemv kernel launch call

 {F1975359276}

Fixed in this diff and other minor updates.

Reviewed By: ipiszy

Differential Revision: D70072967

fbshipit-source-id: f71c838943ea45bc07041ba64426c13e995ff93d
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.

3 participants