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

Fix pt2_wrapper registration for unified TBE interface #3238

Closed
wants to merge 1 commit into from

Commits on Oct 11, 2024

  1. Fix pt2_wrapper registration for unified TBE interface (pytorch#3238)

    Summary:
    X-link: facebookresearch/FBGEMM#339
    
    
    `*_pt2_wrapper` registration is currently in gpu source files so the wrappers are not found in CPU builds.
    
    To fix this, add codegen `m.def` in cpu source files for ops that have cpu support. Keep the `m.def` in gpu source files for GPU-only support (i.e., `ssd` and global weight decay `gwd` kernels.
    
    Reviewed By: q10
    
    Differential Revision: D64201777
    spcyppt authored and facebook-github-bot committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    e42c9bc View commit details
    Browse the repository at this point in the history