Skip to content
This repository was archived by the owner on Apr 28, 2023. It is now read-only.

Commit 96b4e4c

Browse files
authored
Merge pull request #37 from facebookresearch/update-docker-build
Update install TC from docker instructions
2 parents 48dbfde + 5ac7fcc commit 96b4e4c

File tree

5 files changed

+35
-2
lines changed

5 files changed

+35
-2
lines changed

docs/source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Tensor Comprehensions provides framework-Agnostic Abstractions for High-Performa
3434
:caption: Installation
3535

3636
installation
37-
docker_image
37+
installation_docker_image
3838
installation_conda_dep
3939
installation_conda
4040
installation_non_conda

docs/source/installation_conda.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,8 @@ Now check your proto version by running:
169169
170170
$ protoc --version
171171
172+
.. _conda_install_tc:
173+
172174
Step 7: Installing TC
173175
^^^^^^^^^^^^^^^^^^^^^
174176

docs/source/installation_conda_dep.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ Set environment variables:
131131
$ export LD_LIBRARY_PATH=/usr/local/cuda/lib64:/usr/local/cuda/targets/x86_64-linux/lib/stubs/:$LD_LIBRARY_PATH
132132
$ export PATH=/usr/local/bin:/usr/local/cuda/bin:$PATH
133133
134+
.. _conda_dep_install_tc:
135+
134136
Step 6: Install TC
135137
^^^^^^^^^^^^^^^^^^
136138

docs/source/docker_image.rst renamed to docs/source/installation_docker_image.rst

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Installing TC from docker image
1+
Installing TC from Docker image
22
===============================
33

44
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
77

88
The conda and non-conda images for each setup are below:
99

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+
1018
* :code:`Ubuntu 14.04 conda environment`
1119

1220
.. code-block:: bash
1321
1422
$ docker run -i -t tensorcomprehensions/linux-trusty-gcc4.8-tapir5.0-cuda8-cudnn6-py3-conda:x86
1523
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+
1630
* :code:`Ubuntu 14.04 non-conda environment`
1731

1832
.. code-block:: bash
1933
2034
$ docker run -i -t tensorcomprehensions/linux-trusty-gcc4.8-tapir5.0-cuda8-cudnn6-py3:x86
2135
36+
Now, to install TC, follow :ref:`non_conda_install_tc`
37+
38+
2239
* :code:`Ubuntu 16.04 conda environment`
2340

2441
.. code-block:: bash
2542
2643
$ docker run -i -t tensorcomprehensions/linux-xenial-gcc5-tapir5.0-cuda9-cudnn7-py3-conda:x86
2744
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+
2849
* :code:`Ubuntu 16.04 non-conda environment`
2950

3051
.. code-block:: bash
3152
3253
$ docker run -i -t tensorcomprehensions/linux-xenial-gcc5-tapir5.0-cuda9-cudnn7-py3:x86
3354
55+
Now, to install TC, follow :ref:`non_conda_install_tc`
56+
3457

3558
TC runtime image with nvidia-docker
3659
-----------------------------------
@@ -44,3 +67,8 @@ have :code:`nvidia-docker` installed. Then run the image using following command
4467
.. code-block:: bash
4568
4669
$ 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`.

docs/source/installation_non_conda.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ Now, check your yaml import works. If it doesn't, make sure you ran earlier step
146146
147147
$ python3 -c 'import yaml'
148148
149+
.. _non_conda_install_tc:
149150

150151
Step 7: Install TC
151152
^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)