You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 28, 2023. It is now read-only.
First, check your gcc/g++ and make sure they are in system path, somewhere like :code:`/usr/bin`. Also, check your gcc/g++ version. Currently, TC officially supports :code:`gcc 4.8` when installing using conda packages.
21
+
22
+
.. code-block:: bash
23
+
24
+
$ which gcc
25
+
$ which g++
26
+
27
+
If you don't have correct gcc, g++, follow the instructions below, otherwise skip:
Now add :code:`anaconda3` to your :code:`PATH` so that you can use it. For that run the following command:
56
+
57
+
.. code-block:: bash
58
+
59
+
$ export PATH=$HOME/anaconda3/bin:$PATH
60
+
61
+
Now, verify your conda installation and check the version:
62
+
63
+
.. code-block:: bash
64
+
65
+
$ which conda
66
+
67
+
This command should print the path of your conda bin. If it doesn't, make sure conda is in your :code:`PATH`.
68
+
69
+
Step 4: Get CUDA and CUDNN
70
+
^^^^^^^^^^^^^^^^^^^^^^^^^^
71
+
In order to build TC, you also need to have :code:`CUDA` and :code:`CUDNN`. If you already have it
72
+
you can just export the :code:`PATH`, :code:`LD_LIBRARY_PATH` (see the end of this step). If you don't have CUDA/CUDNN, then follow the instructions below:
73
+
74
+
First, install :code:`CUDA` Toolkit v8.0 (skip if you have it):
Caffe2 doesn't provide support for pip/conda at the moment and this means in order to use the caffe2 python, you might need to set $PYTHONPATH. Normally, it could be :code:`${TC_DIR}/third-party-install/`
However, please check caffe2 official instructions `here <https://caffe2.ai/docs/getting-started.html?platform=mac&configuration=compile#test-the-caffe2-installation>`_ . TC doesn't yet provide support for caffe2 python usage.
223
+
Now, you have the TC bindings with Caffe2 built as well and and you write python examples for TC in caffe2.
TC officially support protobuf3.4 at the moment. Please follow the below instructions
54
-
to install the protobuf.
55
-
56
-
.. note::
57
-
58
-
Anaconda3 also has a protobuf3 available but that might not be compatible with TC. So we recommend following the below instructions to install Protobuf3.4
$ cd protobuf-3.4.0 && ./autogen.sh && ./configure && make -j 8 && make install && ldconfig
67
-
68
-
.. note::
69
-
70
-
Please use :code:`sudo` to run the command that might fail with permission issues. Otherwise, run
71
-
the commands as is.
72
-
73
50
74
-
Now check your proto version by running:
75
-
76
-
.. code-block:: bash
77
-
78
-
$ protoc --version
79
-
80
-
Step 4: Install Anaconda3
51
+
Step 3: Install Anaconda3
81
52
^^^^^^^^^^^^^^^^^^^^^^^^^^
82
53
In order to contribute to TC python/C++ API, you need to install TC from source. For this,
83
54
:code:`anaconda3` is required. Install :code:`anaconda3` by following the instructions below:
@@ -103,7 +74,7 @@ Now, verify your conda installation and check the version:
103
74
104
75
This command should print the path of your conda bin. If it doesn't, make sure conda is in your :code:`PATH`.
105
76
106
-
Step 5: Get CUDA and CUDNN
77
+
Step 4: Get CUDA and CUDNN
107
78
^^^^^^^^^^^^^^^^^^^^^^^^^^
108
79
In order to build TC, you also need to have :code:`CUDA` and :code:`CUDNN`. If you already have it
109
80
you can just export the :code:`PATH`, :code:`LD_LIBRARY_PATH` (see the end of this step). If you don't have CUDA/CUDNN, then follow the instructions below:
@@ -144,7 +115,7 @@ Set environment variables:
144
115
145
116
.. _conda_dep_install_tc:
146
117
147
-
Step 6: Install TC
118
+
Step 5: Install TC
148
119
^^^^^^^^^^^^^^^^^^
149
120
150
121
We ship conda packages for most of TC dependencies like :code:`clang+llvm`, :code:`glog`,
@@ -153,23 +124,35 @@ conda packages of TC dependencies and then build TC.
0 commit comments