1
- Installing TC from docker image
1
+ Installing TC from Docker image
2
2
===============================
3
3
4
4
We provide docker runtime images for :code: `conda ` and :code: `non-conda ` environments both. TC officially supports
@@ -7,30 +7,53 @@ for Tensor Comprehensions at the `dockerhub <https://hub.docker.com/u/tensorcomp
7
7
8
8
The conda and non-conda images for each setup are below:
9
9
10
+ .. note ::
11
+
12
+ Docker images below require 12Gb to 16Gb of RAM to run. If you need to adjust the
13
+ memory requirements, then please add :code: `--memory=16g ` to the docker run command.
14
+ If your memory is not enough, TC will not build and you will see the errors like
15
+ `g++: internal compiler error: Killed (program cc1plus) `
16
+
17
+
10
18
* :code: `Ubuntu 14.04 conda environment `
11
19
12
20
.. code-block :: bash
13
21
14
22
$ docker run -i -t tensorcomprehensions/linux-trusty-gcc4.8-tapir5.0-cuda8-cudnn6-py3-conda:x86
15
23
24
+ Now, follow the instructions below to build TC:
25
+
26
+ * **Option1: ** If you want to build everything from scratch including TC dependencies, follow :ref: `conda_install_tc `.
27
+ * **Option2: ** If you want to build TC but using pre-built conda packages, follow :ref: `conda_dep_install_tc `.
28
+
29
+
16
30
* :code: `Ubuntu 14.04 non-conda environment `
17
31
18
32
.. code-block :: bash
19
33
20
34
$ docker run -i -t tensorcomprehensions/linux-trusty-gcc4.8-tapir5.0-cuda8-cudnn6-py3:x86
21
35
36
+ Now, to install TC, follow :ref: `non_conda_install_tc `
37
+
38
+
22
39
* :code: `Ubuntu 16.04 conda environment `
23
40
24
41
.. code-block :: bash
25
42
26
43
$ docker run -i -t tensorcomprehensions/linux-xenial-gcc5-tapir5.0-cuda9-cudnn7-py3-conda:x86
27
44
45
+ We don't ship the conda packages for TC dependencies that are compatible with gcc5 yet, so you have to
46
+ build them from source. To install TC, see instructions here: :ref: `conda_install_tc `
47
+
48
+
28
49
* :code: `Ubuntu 16.04 non-conda environment `
29
50
30
51
.. code-block :: bash
31
52
32
53
$ docker run -i -t tensorcomprehensions/linux-xenial-gcc5-tapir5.0-cuda9-cudnn7-py3:x86
33
54
55
+ Now, to install TC, follow :ref: `non_conda_install_tc `
56
+
34
57
35
58
TC runtime image with nvidia-docker
36
59
-----------------------------------
@@ -44,3 +67,8 @@ have :code:`nvidia-docker` installed. Then run the image using following command
44
67
.. code-block :: bash
45
68
46
69
$ nvidia-docker run --rm -i -t tensorcomprehensions/trusty-gcc4.8-py3-conda-cuda:x86
70
+
71
+ Now, follow the instructions below to build TC:
72
+
73
+ * **Option1: ** If you want to build everything from scratch including TC dependencies, follow :ref: `conda_install_tc `.
74
+ * **Option2: ** If you want to build TC but using pre-built conda packages, follow :ref: `conda_dep_install_tc `.
0 commit comments