-
Notifications
You must be signed in to change notification settings - Fork 1
/
build_from_source.txt
48 lines (34 loc) · 1.13 KB
/
build_from_source.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# common dependencies
conda install numpy ninja pyyaml mkl mkl-include setuptools cmake cffi typing
conda install -c pytorch magma-cuda90 # or [magma-cuda92 | magma-cuda100 ] depending on your cuda version
# get pytorch from source
git clone --recursive https://github.com/pytorch/pytorch
cd pytorch
# if you are updating an existing checkout
git submodule sync
git submodule update --init --recursive
# installing
export CMAKE_PREFIX_PATH=${CONDA_PREFIX:-"$(dirname $(which conda))/../"}
python setup.py install
# build torchvision from source
git clone https://github.com/pytorch/vision
cd vision
# if you are updating an existing checkout
git submodule sync
git submodule update --init --recursive
python setup.py install
# build ignite from source
git clone https://github.com/pytorch/ignite
cd ignite
# if you are updating an existing checkout
git submodule sync
git submodule update --init --recursive
python setup.py install
# build fastai from source
git clone https://github.com/fastai/fastai
cd fastai
tools/run-after-git-clone
pip install -e ".[dev]"
# some tips for accelerating
1. jpeg -----> libjpeg-turbo
2. Pillow -----> Pillow-SIMD