Skip to content

Make auto select for embedding_ops and fix duplicate cu files#2269

Closed
houseroad wants to merge 1 commit into
pytorch:mainfrom
houseroad:export-D52790445
Closed

Make auto select for embedding_ops and fix duplicate cu files#2269
houseroad wants to merge 1 commit into
pytorch:mainfrom
houseroad:export-D52790445

Conversation

@houseroad

Copy link
Copy Markdown
Member

Summary:
Both "embedding_ops" and "index_select_ops" include "gen_batch_index_select_dim0_backward_kernel_warp.cu", which caused the duplicate symbol issue.

So remove the "gen_embedding_backward_split_grad.cu" from the source of "index_select_ops", and include "embedding_ops" as its deps.

Reviewed By: jiaqizhai

Differential Revision: D52790445

@netlify

netlify Bot commented Jan 16, 2024

Copy link
Copy Markdown

Deploy Preview for pytorch-fbgemm-docs ready!

Name Link
🔨 Latest commit 09ce8d9
🔍 Latest deploy log https://app.netlify.com/sites/pytorch-fbgemm-docs/deploys/65a705b71196260008ae2ab5
😎 Deploy Preview https://deploy-preview-2269--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: D52790445

…h#2269)

Summary:

Both "embedding_ops" and "index_select_ops" include "gen_batch_index_select_dim0_backward_kernel_warp.cu", which caused the duplicate symbol issue.

So remove the "gen_embedding_backward_split_grad.cu" from the source of "index_select_ops", and include "embedding_ops" as its deps.

Reviewed By: jiaqizhai

Differential Revision: D52790445
@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

1 similar comment
@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

@houseroad

Copy link
Copy Markdown
Member Author

The failed tests look unrelated.

@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request has been merged in 54a56f0.

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