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

Implement offseted mode for linearize_cache_indices CUDA kernel #2554

Closed
wants to merge 1 commit into from

Conversation

levythu
Copy link
Contributor

@levythu levythu commented May 2, 2024

Summary:
This patch will allow base_offset as a parameter so all values in offset will be decresed by that amount. This is done in a way that no copy of offset.

The ultimate goal for this is to achieve multipass prefetch, which require calling this kernel on a segment of indices (rather than the whole). See unittest for its usage.

Differential Revision: D56863774

Summary:
This patch will allow base_offset as a parameter so all values in `offset` will be decresed by that amount. This is done in a way that no copy of `offset`.

The ultimate goal for this is to achieve multipass prefetch, which require calling this kernel on a segment of `indices` (rather than the whole). See unittest for its usage.

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

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

Copy link

netlify bot commented May 2, 2024

Deploy Preview for pytorch-fbgemm-docs ready!

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

levythu added a commit to levythu/FBGEMM that referenced this pull request May 7, 2024
…h#2554)

Summary:

This patch will allow base_offset as a parameter so all values in `offset` will be decresed by that amount. This is done in a way that no copy of `offset`.

The ultimate goal for this is to achieve multipass prefetch, which require calling this kernel on a segment of `indices` (rather than the whole). See unittest for its usage.

Reviewed By: SherlockNoMad, henryoier

Differential Revision: D56863774
levythu added a commit to levythu/FBGEMM that referenced this pull request May 7, 2024
…h#2554)

Summary:

This patch will allow base_offset as a parameter so all values in `offset` will be decresed by that amount. This is done in a way that no copy of `offset`.

The ultimate goal for this is to achieve multipass prefetch, which require calling this kernel on a segment of `indices` (rather than the whole). See unittest for its usage.

Reviewed By: SherlockNoMad, henryoier

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

This pull request has been merged in 254aa96.

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.

None yet

2 participants