Skip to content

Fix pt2_wrapper registration for unified TBE interface#3238

Closed
spcyppt wants to merge 1 commit into
pytorch:mainfrom
spcyppt:export-D64201777
Closed

Fix pt2_wrapper registration for unified TBE interface#3238
spcyppt wants to merge 1 commit into
pytorch:mainfrom
spcyppt:export-D64201777

Conversation

@spcyppt

@spcyppt spcyppt commented Oct 10, 2024

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

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

@netlify

netlify Bot commented Oct 10, 2024

Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
Contributor

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

@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request has been merged in f59d5ee.

spcyppt added a commit to spcyppt/FBGEMM that referenced this pull request Feb 26, 2026
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
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