Skip to content

Remove BUILD_NAMEDTENSOR from codegen and .cu files#31047

Closed
zou3519 wants to merge 4 commits intogh/zou3519/220/basefrom
gh/zou3519/220/head
Closed

Remove BUILD_NAMEDTENSOR from codegen and .cu files#31047
zou3519 wants to merge 4 commits intogh/zou3519/220/basefrom
gh/zou3519/220/head

Conversation

@zou3519
Copy link
Contributor

@zou3519 zou3519 commented Dec 10, 2019

Stack from ghstack:

Changelist:

  • remove BUILD_NAMEDTENSOR from .cu files
  • remove BUILD_NAMEDTENSOR special handling in function_wrapper.py,
    gen.py
  • remove BUILD_NAMEDTENSOR from cpp_extension.py. This code actually
    did nothing because we always compile with BUILD_NAMEDTENSOR.

Future work:

  • Remove torch._C.BUILD_NAMEDTENSOR. This is used in some python
    functions.
  • Remove aten/src/ATen/env.py, which defines BUILD_NAMEDTENSOR=True for
    codegen. There should be no use cases of this left after this PR, but it
    is future work to check that.
  • Remove aten/src/ATen/core/EnableNamedTensor.h, which defines
    the BUILD_NAMEDTENSOR C++ macro. There should be no uses of this left
    after this PR, but it is future work to check that

Test Plan:

  • run tests

Differential Revision: D18908442

Changelist:
- remove BUILD_NAMEDTENSOR from .cu files
- remove BUILD_NAMEDTENSOR special handling in function_wrapper.py
- remove BUILD_NAMEDTENSOR from cpp_extension.py. This code actually
did nothing because we always compile with BUILD_NAMEDTENSOR.

Test Plan:
- run tests

[ghstack-poisoned]
zou3519 added a commit that referenced this pull request Dec 10, 2019
Changelist:
- remove BUILD_NAMEDTENSOR from .cu files
- remove BUILD_NAMEDTENSOR special handling in function_wrapper.py
- remove BUILD_NAMEDTENSOR from cpp_extension.py. This code actually
did nothing because we always compile with BUILD_NAMEDTENSOR.

Test Plan:
- run tests

ghstack-source-id: 30cd505
Pull Request resolved: #31047
Changelist:
- remove BUILD_NAMEDTENSOR from .cu files
- remove BUILD_NAMEDTENSOR special handling in function_wrapper.py,
gen.py
- remove BUILD_NAMEDTENSOR from cpp_extension.py. This code actually
did nothing because we always compile with BUILD_NAMEDTENSOR.

Test Plan:
- run tests

Differential Revision: [D18908442](https://our.internmc.facebook.com/intern/diff/D18908442)

[ghstack-poisoned]
zou3519 added a commit that referenced this pull request Dec 10, 2019
Changelist:
- remove BUILD_NAMEDTENSOR from .cu files
- remove BUILD_NAMEDTENSOR special handling in function_wrapper.py,
gen.py
- remove BUILD_NAMEDTENSOR from cpp_extension.py. This code actually
did nothing because we always compile with BUILD_NAMEDTENSOR.

Test Plan:
- run tests

ghstack-source-id: a8c8b30
Pull Request resolved: #31047
@zou3519 zou3519 requested review from gchanan, izdeby and nairbv December 10, 2019 18:09
Changelist:
- remove BUILD_NAMEDTENSOR from .cu files
- remove BUILD_NAMEDTENSOR special handling in function_wrapper.py,
gen.py
- remove BUILD_NAMEDTENSOR from cpp_extension.py. This code actually
did nothing because we always compile with BUILD_NAMEDTENSOR.

Test Plan:
- run tests

Differential Revision: [D18908442](https://our.internmc.facebook.com/intern/diff/D18908442)

[ghstack-poisoned]
zou3519 added a commit that referenced this pull request Dec 10, 2019
Changelist:
- remove BUILD_NAMEDTENSOR from .cu files
- remove BUILD_NAMEDTENSOR special handling in function_wrapper.py,
gen.py
- remove BUILD_NAMEDTENSOR from cpp_extension.py. This code actually
did nothing because we always compile with BUILD_NAMEDTENSOR.

Test Plan:
- run tests

ghstack-source-id: 1cb4897
Pull Request resolved: #31047
@nairbv
Copy link
Collaborator

nairbv commented Dec 10, 2019

Can you also add what work remains for removing the flag after this PR (or if this is the final PR)?

@zou3519
Copy link
Contributor Author

zou3519 commented Dec 10, 2019

Can you also add what work remains for removing the flag after this PR (or if this is the final PR)?

I'll add it to the body of the PR. There is some work remaining.

Changelist:
- remove BUILD_NAMEDTENSOR from .cu files
- remove BUILD_NAMEDTENSOR special handling in function_wrapper.py,
gen.py
- remove BUILD_NAMEDTENSOR from cpp_extension.py. This code actually
did nothing because we always compile with BUILD_NAMEDTENSOR.

Future work:
- Remove torch._C.BUILD_NAMEDTENSOR. This is used in some python
functions.
- Remove aten/src/ATen/env.py, which defines BUILD_NAMEDTENSOR=True for
codegen. There should be no use cases of this left after this PR, but it
is future work to check that.
- Remove `aten/src/ATen/core/EnableNamedTensor.h`, which defines
the BUILD_NAMEDTENSOR C++ macro. There should be no uses of this left
after this PR, but it is future work to check that

Test Plan:
- run tests

Differential Revision: [D18908442](https://our.internmc.facebook.com/intern/diff/D18908442)

[ghstack-poisoned]
zou3519 added a commit that referenced this pull request Dec 10, 2019
Changelist:
- remove BUILD_NAMEDTENSOR from .cu files
- remove BUILD_NAMEDTENSOR special handling in function_wrapper.py,
gen.py
- remove BUILD_NAMEDTENSOR from cpp_extension.py. This code actually
did nothing because we always compile with BUILD_NAMEDTENSOR.

Future work:
- Remove torch._C.BUILD_NAMEDTENSOR. This is used in some python
functions.
- Remove aten/src/ATen/env.py, which defines BUILD_NAMEDTENSOR=True for
codegen. There should be no use cases of this left after this PR, but it
is future work to check that.
- Remove `aten/src/ATen/core/EnableNamedTensor.h`, which defines
the BUILD_NAMEDTENSOR C++ macro. There should be no uses of this left
after this PR, but it is future work to check that

Test Plan:
- run tests

ghstack-source-id: 12136d1
Pull Request resolved: #31047
@zou3519
Copy link
Contributor Author

zou3519 commented Dec 11, 2019

The pytorch_windows_build failed here, but a rebuild succeeded: https://app.circleci.com/jobs/github/pytorch/pytorch/3900753 so I am considering that failure to be flaky.

@facebook-github-bot
Copy link
Contributor

@zou3519 merged this pull request in 9305f44.

@facebook-github-bot facebook-github-bot deleted the gh/zou3519/220/head branch December 15, 2019 15:16
wuhuikx pushed a commit to wuhuikx/pytorch that referenced this pull request Jan 30, 2020
Summary:
Pull Request resolved: pytorch#31047

Changelist:
- remove BUILD_NAMEDTENSOR from .cu files
- remove BUILD_NAMEDTENSOR special handling in function_wrapper.py
- remove BUILD_NAMEDTENSOR from cpp_extension.py. This code actually
did nothing because we always compile with BUILD_NAMEDTENSOR.

Test Plan: - run tests

Differential Revision: D18908442

Pulled By: zou3519

fbshipit-source-id: b239e24de58580adaf3cef573350773a38b1e4f0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants