absorb THD into main cmake build#12775
Conversation
c8255d6 to
3c9e61e
Compare
3c9e61e to
0f261bf
Compare
apaszke
left a comment
There was a problem hiding this comment.
Won't this make the build much slower?
|
@apaszke why so? |
744bbc9 to
8cf4666
Compare
|
Because so far those were built as part of the |
|
@apaszke that's unaffected. |
36b1d33 to
7221b3d
Compare
|
I'm still tracking down one bug (in (only) some of our linux CI environments, linking c10d/example fails to find -lgloo and -lgloo_cuda). In the meantime this diff is more-or-less ready for review |
a058944 to
9c25a4f
Compare
soumith
left a comment
There was a problem hiding this comment.
see inline comments.
Main things to be fixed:
- dont manually list out all the include_directories, directly depend on
caffe2(and possiblycaffe2_gpu? - you very likely have to move
ncclandgloobuilding into cmake in this PR as well, or have to debug some nasty side-effects
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
2286003 to
ebd5e2b
Compare
64ff793 to
17e894f
Compare
2a3d41c to
3ba678c
Compare
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
3ba678c to
d7ec1a6
Compare
soumith
left a comment
There was a problem hiding this comment.
approved based on further investigations. Gloo is only used in THD when it's built with CUDA support.
facebook-github-bot
left a comment
There was a problem hiding this comment.
anderspapitto is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
Summary: We want to move _C into the same cmake invocation that builds libcaffe2 and libtorch. However, _C depends on THD and c10d, which in turn depend on libcaffe2. That means that we can't move _C into that cmake file unless we do these two first. This change does so. Pull Request resolved: pytorch#12775 Differential Revision: D10457374 Pulled By: anderspapitto fbshipit-source-id: 2c1aa3b8a418a73d2112e93c7da53a2e70cf7bba
We want to move _C into the same cmake invocation that builds
libcaffe2 and libtorch. However, _C depends on THD and c10d, which in
turn depend on libcaffe2. That means that we can't move _C into that
cmake file unless we do these two first. This change does so.