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

Reduce prefetch SM usage when using pipeline prefetching #2991

Closed
wants to merge 3 commits into from

Commits on Aug 14, 2024

  1. Fix get_unique_indices_v2 registration

    Differential Revision: D61294287
    sarunya authored and facebook-github-bot committed Aug 14, 2024
    Configuration menu
    Copy the full SHA
    b0535f3 View commit details
    Browse the repository at this point in the history
  2. Enable pipeline prefetching

    Differential Revision: D60727327
    sarunya authored and facebook-github-bot committed Aug 14, 2024
    Configuration menu
    Copy the full SHA
    2d062d6 View commit details
    Browse the repository at this point in the history

Commits on Aug 15, 2024

  1. Reduce prefetch SM usage when using pipeline prefetching (pytorch#2991)

    Summary:
    Pull Request resolved: pytorch#2991
    
    This diff limits the SM usage on `masked_index_put` and
    `masked_index_get` when pipeline prefetching is used by using a small
    grid size.  This is to reduce the interference of these kernels with
    the kernels on the compute stream during prefetch.  The grid size is
    currently set to 1/8 of the total number of SMs.  However, this number
    has to be tuned.
    
    Differential Revision: D61145930
    sryap authored and facebook-github-bot committed Aug 15, 2024
    Configuration menu
    Copy the full SHA
    35c00b0 View commit details
    Browse the repository at this point in the history