fix Dockerfile for submodules

This commit is contained in:
Soumith Chintala 2017-09-25 18:04:34 -04:00 committed by GitHub
parent 6a4ec4f9a8
commit 9defb8e653

View File

@ -26,6 +26,7 @@ RUN conda install --name pytorch-py35 -c soumith magma-cuda80
WORKDIR /opt/pytorch
COPY . .
RUN git submodule update --init
RUN TORCH_CUDA_ARCH_LIST="3.5 5.2 6.0 6.1+PTX" TORCH_NVCC_FLAGS="-Xfatbin -compress-all" \
CMAKE_PREFIX_PATH="$(dirname $(which conda))/../" \
pip install -v .