Skip to content

Commit 091112f

Browse files
committed
Including the conda environments specifications.
1 parent 86b41a5 commit 091112f

File tree

4 files changed

+281
-0
lines changed

4 files changed

+281
-0
lines changed

conda-envs/cpu.yml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
name: roosterize-cpu
2+
channels:
3+
- pytorch
4+
- defaults
5+
dependencies:
6+
- _libgcc_mutex=0.1
7+
- blas=1.0
8+
- ca-certificates=2020.10.14
9+
- certifi=2020.6.20
10+
- cffi=1.14.3
11+
- cpuonly=1.0
12+
- freetype=2.10.4
13+
- intel-openmp=2020.2
14+
- jpeg=9b
15+
- lcms2=2.11
16+
- ld_impl_linux-64=2.33.1
17+
- libedit=3.1.20191231
18+
- libffi=3.3
19+
- libgcc-ng=9.1.0
20+
- libpng=1.6.37
21+
- libstdcxx-ng=9.1.0
22+
- libtiff=4.1.0
23+
- lz4-c=1.9.2
24+
- mkl=2020.2
25+
- mkl-service=2.3.0
26+
- mkl_fft=1.2.0
27+
- mkl_random=1.1.1
28+
- ncurses=6.2
29+
- ninja=1.10.1
30+
- numpy=1.19.2
31+
- numpy-base=1.19.2
32+
- olefile=0.46
33+
- openssl=1.1.1h
34+
- pillow=8.0.1
35+
- pip=20.2.4
36+
- pycparser=2.20
37+
- python=3.7.9
38+
- pytorch-cpu=1.1.0
39+
- readline=8.0
40+
- setuptools=50.3.1
41+
- six=1.15.0
42+
- sqlite=3.33.0
43+
- tk=8.6.10
44+
- torchvision-cpu=0.3.0
45+
- wheel=0.35.1
46+
- xz=5.2.5
47+
- zlib=1.2.11
48+
- zstd=1.4.5
49+
- pip:
50+
- chardet==3.0.4
51+
- click==7.1.2
52+
- configargparse==1.2.3
53+
- deprecated==1.2.10
54+
- future==0.18.2
55+
- idna==2.10
56+
- ijson==3.1.2.post0
57+
- joblib==0.17.0
58+
- mypy-extensions==0.4.3
59+
- nltk==3.5
60+
- pygithub==1.53
61+
- pygls==0.9.1
62+
- pyjwt==1.7.1
63+
- pyyaml==5.3.1
64+
- recordclass==0.14.3
65+
- regex==2020.11.13
66+
- requests==2.25.0
67+
- seutil==0.5.4
68+
- torchtext==0.4.0
69+
- tqdm==4.30.0
70+
- typing-extensions==3.7.4.3
71+
- typing-inspect==0.6.0
72+
- unidiff==0.6.0
73+
- urllib3==1.26.2
74+
- wrapt==1.12.1
75+
prefix: /home/pynie/opt/anaconda3/envs/roosterize-cpu

conda-envs/gpu-cuda10.yml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
name: roosterize-gpu
2+
channels:
3+
- pytorch
4+
- defaults
5+
dependencies:
6+
- _libgcc_mutex=0.1
7+
- blas=1.0
8+
- ca-certificates=2020.10.14
9+
- certifi=2020.6.20
10+
- cffi=1.14.3
11+
- cudatoolkit=10.0.130
12+
- freetype=2.10.4
13+
- intel-openmp=2020.2
14+
- jpeg=9b
15+
- lcms2=2.11
16+
- ld_impl_linux-64=2.33.1
17+
- libedit=3.1.20191231
18+
- libffi=3.3
19+
- libgcc-ng=9.1.0
20+
- libpng=1.6.37
21+
- libstdcxx-ng=9.1.0
22+
- libtiff=4.1.0
23+
- lz4-c=1.9.2
24+
- mkl=2020.2
25+
- mkl-service=2.3.0
26+
- mkl_fft=1.2.0
27+
- mkl_random=1.1.1
28+
- ncurses=6.2
29+
- ninja=1.10.1
30+
- numpy=1.19.2
31+
- numpy-base=1.19.2
32+
- olefile=0.46
33+
- openssl=1.1.1h
34+
- pillow=8.0.1
35+
- pip=20.2.4
36+
- pycparser=2.20
37+
- python=3.7.9
38+
- pytorch=1.1.0
39+
- readline=8.0
40+
- setuptools=50.3.1
41+
- six=1.15.0
42+
- sqlite=3.33.0
43+
- tk=8.6.10
44+
- torchvision=0.3.0
45+
- wheel=0.35.1
46+
- xz=5.2.5
47+
- zlib=1.2.11
48+
- zstd=1.4.5
49+
- pip:
50+
- chardet==3.0.4
51+
- click==7.1.2
52+
- configargparse==1.2.3
53+
- deprecated==1.2.10
54+
- future==0.18.2
55+
- idna==2.10
56+
- ijson==3.1.2.post0
57+
- joblib==0.17.0
58+
- mypy-extensions==0.4.3
59+
- nltk==3.5
60+
- pygithub==1.53
61+
- pygls==0.9.1
62+
- pyjwt==1.7.1
63+
- pyyaml==5.3.1
64+
- recordclass==0.14.3
65+
- regex==2020.11.13
66+
- requests==2.25.0
67+
- seutil==0.5.4
68+
- torchtext==0.4.0
69+
- tqdm==4.30.0
70+
- typing-extensions==3.7.4.3
71+
- typing-inspect==0.6.0
72+
- unidiff==0.6.0
73+
- urllib3==1.26.2
74+
- wrapt==1.12.1
75+
prefix: /home/pynie/opt/anaconda3/envs/roosterize-gpu

conda-envs/gpu-cuda9.yml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
name: roosterize-gpu
2+
channels:
3+
- pytorch
4+
- defaults
5+
dependencies:
6+
- _libgcc_mutex=0.1
7+
- blas=1.0
8+
- ca-certificates=2020.10.14
9+
- certifi=2020.6.20
10+
- cffi=1.14.3
11+
- cudatoolkit=9.0
12+
- freetype=2.10.4
13+
- intel-openmp=2020.2
14+
- jpeg=9b
15+
- lcms2=2.11
16+
- ld_impl_linux-64=2.33.1
17+
- libedit=3.1.20191231
18+
- libffi=3.3
19+
- libgcc-ng=9.1.0
20+
- libpng=1.6.37
21+
- libstdcxx-ng=9.1.0
22+
- libtiff=4.1.0
23+
- lz4-c=1.9.2
24+
- mkl=2020.2
25+
- mkl-service=2.3.0
26+
- mkl_fft=1.2.0
27+
- mkl_random=1.1.1
28+
- ncurses=6.2
29+
- ninja=1.10.1
30+
- numpy=1.19.2
31+
- numpy-base=1.19.2
32+
- olefile=0.46
33+
- openssl=1.1.1h
34+
- pillow=8.0.1
35+
- pip=20.2.4
36+
- pycparser=2.20
37+
- python=3.7.9
38+
- pytorch=1.1.0
39+
- readline=8.0
40+
- setuptools=50.3.1
41+
- six=1.15.0
42+
- sqlite=3.33.0
43+
- tk=8.6.10
44+
- torchvision=0.3.0
45+
- wheel=0.35.1
46+
- xz=5.2.5
47+
- zlib=1.2.11
48+
- zstd=1.4.5
49+
- pip:
50+
- chardet==3.0.4
51+
- click==7.1.2
52+
- configargparse==1.2.3
53+
- deprecated==1.2.10
54+
- future==0.18.2
55+
- idna==2.10
56+
- ijson==3.1.2.post0
57+
- joblib==0.17.0
58+
- mypy-extensions==0.4.3
59+
- nltk==3.5
60+
- pygithub==1.53
61+
- pygls==0.9.1
62+
- pyjwt==1.7.1
63+
- pyyaml==5.3.1
64+
- recordclass==0.14.3
65+
- regex==2020.11.13
66+
- requests==2.25.0
67+
- seutil==0.5.4
68+
- torchtext==0.4.0
69+
- tqdm==4.30.0
70+
- typing-extensions==3.7.4.3
71+
- typing-inspect==0.6.0
72+
- unidiff==0.6.0
73+
- urllib3==1.26.2
74+
- wrapt==1.12.1
75+
prefix: /home/pynie/opt/anaconda3/envs/roosterize-gpu

package.sh

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
#!/bin/bash
2+
3+
_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
4+
5+
# This script is for preparing the releases, conda environments, etc.
6+
7+
8+
CONDA_PATH="$HOME/opt/anaconda3/etc/profile.d/conda.sh"
9+
10+
11+
function prepare_conda_env_cpu() {
12+
source ${CONDA_PATH}
13+
conda env remove --name roosterize-cpu
14+
conda create --name roosterize-cpu python=3.7 pip -y
15+
conda activate roosterize-cpu
16+
conda install -y pytorch-cpu==1.1.0 torchvision-cpu==0.3.0 cpuonly -c pytorch
17+
pip install -r requirements.txt
18+
conda env export --no-builds > conda-envs/cpu.yml
19+
}
20+
21+
22+
function prepare_conda_env_gpu_cuda10() {
23+
source ${CONDA_PATH}
24+
conda env remove --name roosterize-gpu
25+
conda create --name roosterize-gpu python=3.7 pip -y
26+
conda activate roosterize-gpu
27+
conda install -y pytorch==1.1.0 torchvision==0.3.0 cudatoolkit=10.0 -c pytorch
28+
pip install -r requirements.txt
29+
conda env export --no-builds > conda-envs/gpu-cuda10.yml
30+
}
31+
32+
33+
function prepare_conda_env_gpu_cuda9() {
34+
source ${CONDA_PATH}
35+
conda env remove --name roosterize-gpu
36+
conda create --name roosterize-gpu python=3.7 pip -y
37+
conda activate roosterize-gpu
38+
conda install -y pytorch==1.1.0 torchvision==0.3.0 cudatoolkit=9.0 -c pytorch
39+
pip install -r requirements.txt
40+
conda env export --no-builds > conda-envs/gpu-cuda9.yml
41+
}
42+
43+
44+
# ==========
45+
# Main function -- program entry point
46+
# This script can be executed as ./run.sh the_function_to_run
47+
48+
function main() {
49+
local action=${1:?Need Argument}; shift
50+
51+
( cd ${_DIR}
52+
$action "$@"
53+
)
54+
}
55+
56+
main "$@"

0 commit comments

Comments
 (0)