Skip to content

Increase memcpy and compute overlap#2860

Closed
sryap wants to merge 3 commits into
pytorch:mainfrom
sryap:export-D59866892
Closed

Increase memcpy and compute overlap#2860
sryap wants to merge 3 commits into
pytorch:mainfrom
sryap:export-D59866892

Conversation

@sryap

@sryap sryap commented Jul 17, 2024

Copy link
Copy Markdown
Contributor

Summary:
This diff introduces a small optimization for device-host memory copy
to increase the overlap with the compute kernels.
Changes include:

  • Transfer evicted_indices early on the ssd_eviction_stream stream
    (for cache eviction)
  • Transfer post_bwd_evicted_indices early on the
    ssd_eviction_stream stream (for scratch pad eviction)
  • Transfer actions_count and inserted_indices early on the
    ssd_memcpy_stream stream (for get)

Differential Revision: D59866892

sarunya and others added 3 commits July 16, 2024 14:20
Differential Revision: D59795139
Differential Revision: D59716516
Summary:
This diff introduces a small optimization for device-host memory copy
to increase the overlap with the compute kernels.
Changes include:
- Transfer `evicted_indices` early on the `ssd_eviction_stream` stream
  (for cache eviction)
- Transfer `post_bwd_evicted_indices` early on the
  `ssd_eviction_stream` stream (for scratch pad eviction)
- Transfer `actions_count` and `inserted_indices` early on the
  `ssd_memcpy_stream` stream (for get)

Differential Revision: D59866892
@netlify

netlify Bot commented Jul 17, 2024

Copy link
Copy Markdown

Deploy Preview for pytorch-fbgemm-docs ready!

Name Link
🔨 Latest commit 355391d
🔍 Latest deploy log https://app.netlify.com/sites/pytorch-fbgemm-docs/deploys/6698117181797e0008f68864
😎 Deploy Preview https://deploy-preview-2860--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
Copy Markdown
Contributor

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

@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request has been merged in d6790d0.

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