Skip to content

Commit

Permalink
Also sync submodule in the Dockerfile (#35423)
Browse files Browse the repository at this point in the history
Summary:
Sometimes submodule URL may have changed between commits. Let Dockerfile
also sync submodules before updating.
Pull Request resolved: pytorch/pytorch#35423

Differential Revision: D20658464

Pulled By: ngimel

fbshipit-source-id: 9c101338437f9e86432d3502766858fa5156a800
  • Loading branch information
xuhdev authored and facebook-github-bot committed Mar 26, 2020
1 parent 0ccceb2 commit fa4603e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/pytorch/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ENV PATH /opt/conda/bin:$PATH
WORKDIR /opt/pytorch
COPY . .

RUN git submodule update --init --recursive
RUN git submodule sync && git submodule update --init --recursive
RUN TORCH_CUDA_ARCH_LIST="3.5 5.2 6.0 6.1 7.0+PTX" TORCH_NVCC_FLAGS="-Xfatbin -compress-all" \
CMAKE_PREFIX_PATH="$(dirname $(which conda))/../" \
pip install -v .
Expand Down

0 comments on commit fa4603e

Please sign in to comment.