Skip to content

[Caffe2] Add AT_CORE_EXPORT and AT_CORE_IMPORT.#10602

Closed
xkszltl wants to merge 2 commits intopytorch:masterfrom
xkszltl:typeid
Closed

[Caffe2] Add AT_CORE_EXPORT and AT_CORE_IMPORT.#10602
xkszltl wants to merge 2 commits intopytorch:masterfrom
xkszltl:typeid

Conversation

@xkszltl
Copy link
Contributor

@xkszltl xkszltl commented Aug 16, 2018

Fix "error LNK2019: unresolved external symbol" from "CAFFE_KNOWN_TYPE" in tests where we should use dllexport instead of AT_CORE_API(=dllimport).

Fix "error LNK2019: unresolved external symbol" from "CAFFE_KNOWN_TYPE" in tests where we should use dllexport instead of AT_CORE_API(=dllimport).
@xkszltl
Copy link
Contributor Author

xkszltl commented Aug 16, 2018

For #10601

@xkszltl xkszltl changed the title Add AT_CORE_EXPORT and AT_CORE_IMPORT. [Caffe2] Add AT_CORE_EXPORT and AT_CORE_IMPORT. Aug 16, 2018
Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

Yangqing is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@xkszltl xkszltl deleted the typeid branch August 17, 2018 09:39
zdevito pushed a commit to zdevito/ATen that referenced this pull request Aug 17, 2018
Summary:
Fix "error LNK2019: unresolved external symbol" from "CAFFE_KNOWN_TYPE" in tests where we should use dllexport instead of AT_CORE_API(=dllimport).
Pull Request resolved: pytorch/pytorch#10602

Differential Revision: D9377394

Pulled By: Yangqing

fbshipit-source-id: 993062a461ffce393f2321c5391db5afb9b4e7ba
// create attribute ignored error for explicit template instantiations, see
// http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/p0537r0.html
// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51930
// and as a result, we define these two macros slightly differently.

This comment was marked as off-topic.

This comment was marked as off-topic.

@Yangqing
Copy link
Contributor

(note: revert done in b4e72ea)

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.

5 participants