Skip to content

Conversation

@ezyang
Copy link
Contributor

@ezyang ezyang commented Aug 2, 2018

Summary:

  • Remove dependency on caffe2/core/common.h, reintroducing
    necessary local header includes
  • Deduplicate Demangle/DemangleType with their ATen equivalents

Differential Revision: D9132432

@ezyang
Copy link
Contributor Author

ezyang commented Aug 2, 2018

This PR is blocked on unifying at::Error and caffe2::EnforceNotMet

@ezyang
Copy link
Contributor Author

ezyang commented Aug 2, 2018

@pytorchbot retest this please

1 similar comment
@ezyang
Copy link
Contributor Author

ezyang commented Aug 2, 2018

@pytorchbot retest this please

@ezyang ezyang changed the title Prepare for typeid.h to move to ATen/core Move typeid.h to ATen/core Aug 3, 2018
@ezyang
Copy link
Contributor Author

ezyang commented Aug 7, 2018

@pytorchbot retest this please

Summary:
Pull Request resolved: pytorch#10163

- Remove dependency on caffe2/core/common.h for ATen/core/typeid.h
  Unfortunately, Windows seems to rely on typeid.h including this
  header, so it is still included from the forwarding header
  caffe2/core/typeid.h
- Deduplicate Demangle/DemangleType with their ATen equivalents

Reviewed By: smessmer

Differential Revision: D9132432

fbshipit-source-id: f816c80f7318f602e0e4ae25f429775a192158fc
@varunagrawal
Copy link
Contributor

@ezyang on compiling the latest master, I get this error:

pytorch/build/lib/libcaffe2_gpu.so: undefined reference to `at::Error::Error(at::SourceLocation, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'

Is this related to the unifying at::Error and caffe2::EnforceNotMet PR?

@ezyang
Copy link
Contributor Author

ezyang commented Aug 7, 2018

Yes, it probably is related. Can you do a clean build and if that doesn't resolve it, file an issue?

@varunagrawal
Copy link
Contributor

Did a pull and clean build and it works. Thanks for the input!

@ezyang
Copy link
Contributor Author

ezyang commented Aug 10, 2018

@pytorchbot retest this please

zdevito pushed a commit to zdevito/ATen that referenced this pull request Aug 10, 2018
Summary:
Pull Request resolved: pytorch/pytorch#10163

- Remove dependency on caffe2/core/common.h for ATen/core/typeid.h
  Unfortunately, Windows seems to rely on typeid.h including this
  header, so it is still included from the forwarding header
  caffe2/core/typeid.h
- Deduplicate Demangle/DemangleType with their ATen equivalents

Reviewed By: smessmer

Differential Revision: D9132432

fbshipit-source-id: 21f2c89e58ca1e795f1b2caa316361b729a5231b
goodlux pushed a commit to goodlux/pytorch that referenced this pull request Aug 15, 2018
Summary:
Pull Request resolved: pytorch#10163

- Remove dependency on caffe2/core/common.h for ATen/core/typeid.h
  Unfortunately, Windows seems to rely on typeid.h including this
  header, so it is still included from the forwarding header
  caffe2/core/typeid.h
- Deduplicate Demangle/DemangleType with their ATen equivalents

Reviewed By: smessmer

Differential Revision: D9132432

fbshipit-source-id: 21f2c89e58ca1e795f1b2caa316361b729a5231b
@ezyang ezyang added the merged label Jun 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants