Skip to content

Conversation

@anderspapitto
Copy link
Contributor

@anderspapitto anderspapitto commented Jul 25, 2018

the new entrypoint is ./tools/build_pytorch_libs.sh caffe2

this will also speed up CI builds a bit, since we will no longer be compiling all of libtorch twice

@ezyang
Copy link
Contributor

ezyang commented Jul 25, 2018

@pytorchbot retest this please

@anderspapitto anderspapitto force-pushed the cleanup-build branch 4 times, most recently from 8e72247 to bab364c Compare July 26, 2018 21:49
@anderspapitto anderspapitto changed the title [WIP/experimental] clean up the build a bit. We no longer need the separate [WIP/experimental] clean up the build a bit. We no longer need the separate build_libtorch entrypoint Jul 26, 2018
@anderspapitto anderspapitto requested a review from ebetica July 26, 2018 21:53
@anderspapitto anderspapitto force-pushed the cleanup-build branch 9 times, most recently from 4b81b7c to 07e5294 Compare July 30, 2018 21:25
@anderspapitto anderspapitto changed the title [WIP/experimental] clean up the build a bit. We no longer need the separate build_libtorch entrypoint [WIP] clean up the build a bit. We no longer need the separate build_libtorch entrypoint Jul 30, 2018
@anderspapitto anderspapitto force-pushed the cleanup-build branch 2 times, most recently from a07b8f6 to c6f4ca3 Compare July 31, 2018 19:16
@anderspapitto anderspapitto changed the title [WIP] clean up the build a bit. We no longer need the separate build_libtorch entrypoint clean up the build a bit. We no longer need the separate build_libtorch entrypoint Aug 1, 2018
Copy link
Contributor

@goldsborough goldsborough left a comment

Choose a reason for hiding this comment

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

Mostly LGTM, just a lot of questions of how my old config will translate to the brave new world

popd
fi

# Test no-Python build

This comment was marked as off-topic.

This comment was marked as off-topic.

# this is a bit hacky, but not too bad. Bundle the test binaries into
# the installation directory, so they can catch a free ride on the 7z
# train.
mkdir -p ${PYTORCH_ENV_DIR}/miniconda3/lib/python3.6/site-packages/torch/test_binaries/build

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.


cmake -DUSE_CUDA:BOOL=$USE_CUDA \
-DBUILD_TORCH=ON \
-DUSE_OPENMP:BOOL=${USE_OPENMP:ON} \

This comment was marked as off-topic.

This comment was marked as off-topic.

fi

# Code is developed a lot more than released, so default to Debug.
BUILD_TYPE=${BUILD_TYPE:-Debug}

This comment was marked as off-topic.

This comment was marked as off-topic.

# Build with Ninja if available. It has much cleaner output.
GENERATE="Unix Makefiles"
MAKE=make
if [ -x "$(command -v ninja)" ]; then

This comment was marked as off-topic.

This comment was marked as off-topic.

# Try to build with as many threads as we have cores, default to 4 if the
# command fails.
set +e
if [ -n "$MAX_JOBS" ]; then # Use MAX_JOBS if it is set

This comment was marked as off-topic.

This comment was marked as off-topic.


# Add the test binaries so that they won't be git clean'ed away
git add -f build/bin
git add -f build/bin build/lib

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

@goldsborough
Copy link
Contributor

What is the status here? Can we make this happen soon?

@anderspapitto
Copy link
Contributor Author

@goldsborough if you want to accept I'm ready to push now. But in the meantime i'm looking at some of the cleanup comments

Copy link
Contributor

@goldsborough goldsborough left a comment

Choose a reason for hiding this comment

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

@ezyang still had some questions, then he can give you codeowner approval

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.

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

@anderspapitto anderspapitto deleted the cleanup-build branch August 6, 2018 21:06
@goldsborough
Copy link
Contributor

I kind of expected you to wait for @ezyang's approval

ezyang added a commit to ezyang/pytorch that referenced this pull request Aug 7, 2018
facebook-github-bot pushed a commit that referenced this pull request Aug 7, 2018
#10285)

Summary:
…d_libtorch entrypoint (#9836)"

This reverts commit 62e23a1.
Pull Request resolved: #10285

Differential Revision: D9193107

Pulled By: ezyang

fbshipit-source-id: de96dce12fdf74410413ae18feee5caf0bed0025
goodlux pushed a commit to goodlux/pytorch that referenced this pull request Aug 15, 2018
…ch entrypoint (pytorch#9836)

Summary:
the new entrypoint is `./tools/build_pytorch_libs.sh caffe2`

this will also speed up CI builds a bit, since we will no longer be compiling all of libtorch twice
Pull Request resolved: pytorch#9836

Differential Revision: D9182634

Pulled By: anderspapitto

fbshipit-source-id: 0b9a20ab04f5df2d5c4e7777e4dc468ab25b9ce2
goodlux pushed a commit to goodlux/pytorch that referenced this pull request Aug 15, 2018
pytorch#10285)

Summary:
…d_libtorch entrypoint (pytorch#9836)"

This reverts commit 62e23a1.
Pull Request resolved: pytorch#10285

Differential Revision: D9193107

Pulled By: ezyang

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

4 participants