Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2b5df19

Browse files
ericnakagawaJoelMarcey
authored andcommitted
Switch Pytorch use to nightly GPU build
Removing fresh build steps to save build time.
1 parent a1df3e1 commit 2b5df19

1 file changed

Lines changed: 7 additions & 17 deletions

File tree

.jenkins/build.sh

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,17 @@
11
sudo apt-get update
22
sudo apt-get install -y --no-install-recommends unzip p7zip-full sox libsox-dev libsox-fmt-all
33

4-
export PATH=/opt/conda/bin:$PATH
5-
6-
## Build pytorch
7-
export CMAKE_PREFIX_PATH="$(dirname $(which conda))/../" # [anaconda root directory]
4+
# Install a nightly build of pytorch
85

9-
# Install basic pytorch dependencies
10-
conda install numpy pyyaml mkl mkl-include setuptools cmake=3.5.0 cffi typing
11-
conda install -c mingfeima mkldnn
6+
# GPU, requires CUDA version 9.0 and python version 3.6
7+
pip install torch_nightly -f https://download.pytorch.org/whl/nightly/cu90/torch_nightly-2018.8.23.dev1-cp36-cp36m-linux_x86_64.whl
128

13-
# Add LAPACK support for the GPU
14-
conda install -c pytorch magma-cuda80 # or magma-cuda90 if CUDA 9
9+
# CPU
10+
# pip install torch_nightly -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly-2018.8.24.dev1-cp36-cp36m-linux_x86_64.whl
1511

16-
# Clone pytorch repo and build from scratch
17-
git clone https://github.com/pytorch/pytorch.git
18-
pushd pytorch
19-
git submodule update --init
20-
.jenkins/pytorch/build.sh
21-
popd
22-
23-
## install doc dependencies
12+
## Install doc dependencies
2413

14+
export PATH=/opt/conda/bin:$PATH
2515
# pillow >= 4.2 will throw error when trying to write mode RGBA as JPEG,
2616
# this is a workaround to the issue.
2717
conda install -y sphinx pandas pillow=4.1.1

0 commit comments

Comments
 (0)