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

Don't import _C in fbcode #218

Merged
merged 1 commit into from
May 6, 2024
Merged

Don't import _C in fbcode #218

merged 1 commit into from
May 6, 2024

Conversation

jerryzh168
Copy link
Contributor

Summary:
since we don't have compilation command in fbcode, and we don't need to use cuda kernels right now in fbcode

Test Plan:
internal CI

Reviewers:

Subscribers:

Tasks:

Tags:

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 6, 2024
@jerryzh168 jerryzh168 requested a review from msaroufim May 6, 2024 16:55
from torch.testing._internal.common_utils import IS_FBCODE
if not IS_FBCODE:
from . import _C

from . import ops
Copy link
Member

@msaroufim msaroufim May 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might need to also bring this in under IS_FBCODE flag

And also will need to skip this test https://github.com/pytorch/ao/blob/main/test/test_ops.py

Test plan is internal CI I guess so will review on phabricator

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll probably need to test this in the fbcode-oss sync diff, since if I just import this PR it may not work since currently code base is not synced

Summary:
since we don't have compilation command in fbcode, and we don't need to use cuda kernels right now in fbcode

Test Plan:
internal CI

Reviewers:

Subscribers:

Tasks:

Tags:
@msaroufim msaroufim merged commit 4852000 into pytorch:main May 6, 2024
11 of 15 checks passed
dbyoung18 pushed a commit to dbyoung18/ao that referenced this pull request Jul 31, 2024
Summary:
since we don't have compilation command in fbcode, and we don't need to use cuda kernels right now in fbcode

Test Plan:
internal CI

Reviewers:

Subscribers:

Tasks:

Tags:
yanbing-j pushed a commit to yanbing-j/ao that referenced this pull request Dec 9, 2024
To enable dispatching via GitHub UI for testing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants