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

Conversation

spcyppt
Copy link
Contributor

@spcyppt spcyppt commented Oct 10, 2024

Summary:
*_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.

Differential Revision: D64201777

@facebook-github-bot
Copy link
Contributor

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

Copy link

netlify bot commented Oct 10, 2024

Deploy Preview for pytorch-fbgemm-docs failed.

Name Link
🔨 Latest commit e42c9bc
🔍 Latest deploy log https://app.netlify.com/sites/pytorch-fbgemm-docs/deploys/6708b12a5ade4a00080f2526

spcyppt added a commit to spcyppt/FBGEMM that referenced this pull request Oct 10, 2024
Summary:

`*_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.

Differential Revision: D64201777
spcyppt added a commit to spcyppt/FBGEMM that referenced this pull request Oct 11, 2024
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 added a commit to spcyppt/FBGEMM that referenced this pull request Oct 11, 2024
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
@facebook-github-bot
Copy link
Contributor

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

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 added a commit to spcyppt/FBGEMM that referenced this pull request Oct 11, 2024
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
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in f59d5ee.

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