Skip to content

Conversation

@peterjc123
Copy link
Collaborator

Fixes #9092.

@peterjc123 peterjc123 changed the title Remove CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS and fix CUDA 8 build on Windows [WIP] Remove CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS and fix CUDA 8 build on Windows Jul 17, 2018
@peterjc123
Copy link
Collaborator Author

peterjc123 commented Jul 18, 2018

@ezyang The work is almost done, except one change needed in the onnx repo.

@peterjc123
Copy link
Collaborator Author

@ezyang Test passed locally on CPU build and the CUDA build should pass too. Could you spare some time to review this?

@peterjc123 peterjc123 changed the title [WIP] Remove CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS and fix CUDA 8 build on Windows Remove CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS and fix CUDA 8 build on Windows Jul 18, 2018
Copy link
Contributor

@ezyang ezyang left a comment

Choose a reason for hiding this comment

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

This is amazingly concise! Thank you!

@peterjc123
Copy link
Collaborator Author

Oh no, it breaks again.

@yf225
Copy link
Contributor

yf225 commented Jul 19, 2018

@pytorchbot retest this please

@yf225
Copy link
Contributor

yf225 commented Jul 19, 2018

@peterjc123 Do you think we can submit a PR to ONNX repo in order to merge this soon? We are thinking of doing the 0.4.1 release by the end of this week or on Monday. If this still needs time we can try to just patch up the 0.4.1 branch to make Windows CUDA 8 build work. Thanks!

cc. @soumith

@peterjc123
Copy link
Collaborator Author

peterjc123 commented Jul 20, 2018

@soumith This PR does not require the code change in ONNX. Actually, since the code in JIT is changing every day, the code here get quickly broken. I guess we should merge this ASAP. Otherwise, I'll
fall into the loop of changing and rebasing.

@peterjc123
Copy link
Collaborator Author

peterjc123 commented Jul 21, 2018

It seems that all the issues has been solved except this one

python_nn_functions.obj : error LNK2001: unresolved external symbol "public: static void __cdecl torch::jit::tracer::ArgumentStash::stashIntListElem(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned __int64,unsigned __int64,struct torch::autograd::Variable const &)" (?stashIntListElem@ArgumentStash@tracer@jit@torch@@SAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@_K1AEBUVariable@autograd@4@@Z)

@apaszke Do you have any idea on this? It is annotated as static, but seems to be referenced in torch\csrc\utils\python_arg_parser.h.

@peterjc123
Copy link
Collaborator Author

@pytorchbot retest this please

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.

@ezyang has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

ezyang pushed a commit to ezyang/pytorch that referenced this pull request Jul 22, 2018
…ws (pytorch#9693)

Summary:
Pull Request resolved: pytorch#9693

Fixes pytorch#9092.
Pull Request resolved: pytorch#9491

Differential Revision: D8946850

fbshipit-source-id: f8e053542b573c0d778f8be62773cc761e090c77
zdevito pushed a commit to zdevito/ATen that referenced this pull request Jul 23, 2018
…ws (#9491) (#9491)

Summary:
Fixes #9092.
Pull Request resolved: pytorch/pytorch#9491
Pull Request resolved: pytorch/pytorch#9693

Differential Revision: D8946850

Pulled By: ezyang

fbshipit-source-id: bd816f459ab70f6b4a0983305a1ce341bb633707
@peterjc123 peterjc123 deleted the export_fix branch July 23, 2018 15:14
jramseyer pushed a commit to jramseyer/pytorch that referenced this pull request Jul 30, 2018
…ws (pytorch#9491) (pytorch#9491)

Summary:
Fixes pytorch#9092.
Pull Request resolved: pytorch#9491
Pull Request resolved: pytorch#9693

Differential Revision: D8946850

Pulled By: ezyang

fbshipit-source-id: bd816f459ab70f6b4a0983305a1ce341bb633707
goodlux pushed a commit to goodlux/pytorch that referenced this pull request Aug 15, 2018
…ws (pytorch#9491) (pytorch#9491)

Summary:
Fixes pytorch#9092.
Pull Request resolved: pytorch#9491
Pull Request resolved: pytorch#9693

Differential Revision: D8946850

Pulled By: ezyang

fbshipit-source-id: bd816f459ab70f6b4a0983305a1ce341bb633707
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.

CUDA 8 build failed on Windows

4 participants