提交 020eb299 编写于 作者: T Travis CI

Deploy to GitHub Pages: fb3e7787

上级 a078a08a
...@@ -21,7 +21,7 @@ Then run: ...@@ -21,7 +21,7 @@ Then run:
git clone https://github.com/PaddlePaddle/Paddle.git git clone https://github.com/PaddlePaddle/Paddle.git
cd Paddle cd Paddle
# run the following command to build a CPU-Only binaries if you are using docker # run the following command to build a CPU-Only binaries if you are using docker
docker run -it -v $PWD:/paddle -e "WITH_GPU=OFF" -e "WITH_TESTING=OFF" paddlepaddle/paddle_manylinux_devel:cuda8.0_cudnn5 bash -x paddle/scripts/docker/build.sh docker run -it -v $PWD:/paddle -e "WITH_GPU=OFF" -e "WITH_TESTING=OFF" paddlepaddle/paddle_manylinux_devel:cuda8.0_cudnn5 bash -x /paddle/paddle/scripts/docker/build.sh
# else run these commands # else run these commands
mkdir build mkdir build
cd build cd build
...@@ -34,7 +34,7 @@ machine or copy it to the target machine. ...@@ -34,7 +34,7 @@ machine or copy it to the target machine.
.. code-block:: bash .. code-block:: bash
pip install python/dist/*.whl pip install build/python/dist/*.whl
.. _run_test: .. _run_test:
...@@ -49,7 +49,7 @@ Set :code:`WITH_GPU=ON` Can also run tests on GPU. ...@@ -49,7 +49,7 @@ Set :code:`WITH_GPU=ON` Can also run tests on GPU.
.. code-block:: bash .. code-block:: bash
docker run -it -v $PWD:/paddle -e "WITH_GPU=OFF" -e "WITH_TESTING=ON" -e "RUN_TEST=ON" paddlepaddle/paddle_manylinux_devel:cuda8.0_cudnn5 bash -x paddle/scripts/docker/build.sh docker run -it -v $PWD:/paddle -e "WITH_GPU=OFF" -e "WITH_TESTING=ON" -e "RUN_TEST=ON" paddlepaddle/paddle_manylinux_devel:cuda8.0_cudnn5 bash -x paddle/paddle/scripts/docker/build.sh
If you don't use Docker, just run ctest will start the tests: If you don't use Docker, just run ctest will start the tests:
...@@ -117,7 +117,7 @@ You can add :code:`-D` argument to pass such options, like: ...@@ -117,7 +117,7 @@ You can add :code:`-D` argument to pass such options, like:
"WITH_PYTHON", "Build with integrated Python interpreter", "ON" "WITH_PYTHON", "Build with integrated Python interpreter", "ON"
"WITH_STYLE_CHECK", "Check code style when building", "ON" "WITH_STYLE_CHECK", "Check code style when building", "ON"
"WITH_TESTING", "Build unit tests", "ON" "WITH_TESTING", "Build unit tests", "ON"
"WITH_DOC", "Build documentaions", "OFF" "WITH_DOC", "Build documentations", "OFF"
"WITH_SWIG_PY", "Build Python SWIG interface for V2 API", "Auto" "WITH_SWIG_PY", "Build Python SWIG interface for V2 API", "Auto"
"WITH_GOLANG", "Build fault-tolerant parameter server written in go", "ON" "WITH_GOLANG", "Build fault-tolerant parameter server written in go", "ON"
"WITH_MKL", "Use MKL as BLAS library, else use OpenBLAS", "ON" "WITH_MKL", "Use MKL as BLAS library, else use OpenBLAS", "ON"
......
...@@ -224,7 +224,7 @@ below <a class="reference internal" href="#compile-dependencies">Compile Depende ...@@ -224,7 +224,7 @@ below <a class="reference internal" href="#compile-dependencies">Compile Depende
<div class="highlight-bash"><div class="highlight"><pre><span></span>git clone https://github.com/PaddlePaddle/Paddle.git <div class="highlight-bash"><div class="highlight"><pre><span></span>git clone https://github.com/PaddlePaddle/Paddle.git
<span class="nb">cd</span> Paddle <span class="nb">cd</span> Paddle
<span class="c1"># run the following command to build a CPU-Only binaries if you are using docker</span> <span class="c1"># run the following command to build a CPU-Only binaries if you are using docker</span>
docker run -it -v <span class="nv">$PWD</span>:/paddle -e <span class="s2">&quot;WITH_GPU=OFF&quot;</span> -e <span class="s2">&quot;WITH_TESTING=OFF&quot;</span> paddlepaddle/paddle_manylinux_devel:cuda8.0_cudnn5 bash -x paddle/scripts/docker/build.sh docker run -it -v <span class="nv">$PWD</span>:/paddle -e <span class="s2">&quot;WITH_GPU=OFF&quot;</span> -e <span class="s2">&quot;WITH_TESTING=OFF&quot;</span> paddlepaddle/paddle_manylinux_devel:cuda8.0_cudnn5 bash -x /paddle/paddle/scripts/docker/build.sh
<span class="c1"># else run these commands</span> <span class="c1"># else run these commands</span>
mkdir build mkdir build
<span class="nb">cd</span> build <span class="nb">cd</span> build
...@@ -235,7 +235,7 @@ make ...@@ -235,7 +235,7 @@ make
<p>When the compile finishes, you can get the output whl package under <p>When the compile finishes, you can get the output whl package under
build/python/dist, then you can choose to install the whl on local build/python/dist, then you can choose to install the whl on local
machine or copy it to the target machine.</p> machine or copy it to the target machine.</p>
<div class="highlight-bash"><div class="highlight"><pre><span></span>pip install python/dist/*.whl <div class="highlight-bash"><div class="highlight"><pre><span></span>pip install build/python/dist/*.whl
</pre></div> </pre></div>
</div> </div>
</div> </div>
...@@ -244,7 +244,7 @@ machine or copy it to the target machine.</p> ...@@ -244,7 +244,7 @@ machine or copy it to the target machine.</p>
<p>If you wish to run the tests, you may follow the below steps:</p> <p>If you wish to run the tests, you may follow the below steps:</p>
<p>When using Docker, set <code class="code docutils literal"><span class="pre">RUN_TEST=ON</span></code> and <code class="code docutils literal"><span class="pre">WITH_TESTING=ON</span></code> will run test immediately after the build. <p>When using Docker, set <code class="code docutils literal"><span class="pre">RUN_TEST=ON</span></code> and <code class="code docutils literal"><span class="pre">WITH_TESTING=ON</span></code> will run test immediately after the build.
Set <code class="code docutils literal"><span class="pre">WITH_GPU=ON</span></code> Can also run tests on GPU.</p> Set <code class="code docutils literal"><span class="pre">WITH_GPU=ON</span></code> Can also run tests on GPU.</p>
<div class="highlight-bash"><div class="highlight"><pre><span></span>docker run -it -v <span class="nv">$PWD</span>:/paddle -e <span class="s2">&quot;WITH_GPU=OFF&quot;</span> -e <span class="s2">&quot;WITH_TESTING=ON&quot;</span> -e <span class="s2">&quot;RUN_TEST=ON&quot;</span> paddlepaddle/paddle_manylinux_devel:cuda8.0_cudnn5 bash -x paddle/scripts/docker/build.sh <div class="highlight-bash"><div class="highlight"><pre><span></span>docker run -it -v <span class="nv">$PWD</span>:/paddle -e <span class="s2">&quot;WITH_GPU=OFF&quot;</span> -e <span class="s2">&quot;WITH_TESTING=ON&quot;</span> -e <span class="s2">&quot;RUN_TEST=ON&quot;</span> paddlepaddle/paddle_manylinux_devel:cuda8.0_cudnn5 bash -x paddle/paddle/scripts/docker/build.sh
</pre></div> </pre></div>
</div> </div>
<p>If you don&#8217;t use Docker, just run ctest will start the tests:</p> <p>If you don&#8217;t use Docker, just run ctest will start the tests:</p>
...@@ -366,7 +366,7 @@ For detailed cmake tutorial please refer to <a class="reference external" href=" ...@@ -366,7 +366,7 @@ For detailed cmake tutorial please refer to <a class="reference external" href="
<td>ON</td> <td>ON</td>
</tr> </tr>
<tr class="row-even"><td>WITH_DOC</td> <tr class="row-even"><td>WITH_DOC</td>
<td>Build documentaions</td> <td>Build documentations</td>
<td>OFF</td> <td>OFF</td>
</tr> </tr>
<tr class="row-odd"><td>WITH_SWIG_PY</td> <tr class="row-odd"><td>WITH_SWIG_PY</td>
......
因为 它太大了无法显示 source diff 。你可以改为 查看blob
...@@ -19,7 +19,7 @@ PaddlePaddle主要使用 `CMake <https://cmake.org>`_ 以及GCC, G++作为编译 ...@@ -19,7 +19,7 @@ PaddlePaddle主要使用 `CMake <https://cmake.org>`_ 以及GCC, G++作为编译
git clone https://github.com/PaddlePaddle/Paddle.git git clone https://github.com/PaddlePaddle/Paddle.git
cd Paddle cd Paddle
# 如果使用Docker编译环境,执行下面的命令编译CPU-Only的二进制 # 如果使用Docker编译环境,执行下面的命令编译CPU-Only的二进制
docker run -it -v $PWD:/paddle -e "WITH_GPU=OFF" -e "WITH_TESTING=OFF" paddlepaddle/paddle_manylinux_devel:cuda8.0_cudnn5 bash -x paddle/scripts/docker/build.sh docker run -it -v $PWD:/paddle -e "WITH_GPU=OFF" -e "WITH_TESTING=OFF" paddlepaddle/paddle_manylinux_devel:cuda8.0_cudnn5 bash -x /paddle/paddle/scripts/docker/build.sh
# 如果不使用Docker编译环境,执行下面的命令 # 如果不使用Docker编译环境,执行下面的命令
mkdir build mkdir build
cd build cd build
...@@ -30,7 +30,7 @@ PaddlePaddle主要使用 `CMake <https://cmake.org>`_ 以及GCC, G++作为编译 ...@@ -30,7 +30,7 @@ PaddlePaddle主要使用 `CMake <https://cmake.org>`_ 以及GCC, G++作为编译
.. code-block:: bash .. code-block:: bash
pip install python/dist/*.whl pip install build/python/dist/*.whl
.. _run_test: .. _run_test:
...@@ -45,7 +45,7 @@ PaddlePaddle主要使用 `CMake <https://cmake.org>`_ 以及GCC, G++作为编译 ...@@ -45,7 +45,7 @@ PaddlePaddle主要使用 `CMake <https://cmake.org>`_ 以及GCC, G++作为编译
.. code-block:: bash .. code-block:: bash
docker run -it -v $PWD:/paddle -e "WITH_GPU=OFF" -e "WITH_TESTING=ON" -e "RUN_TEST=ON" paddlepaddle/paddle_manylinux_devel:cuda8.0_cudnn5 bash -x paddle/scripts/docker/build.sh docker run -it -v $PWD:/paddle -e "WITH_GPU=OFF" -e "WITH_TESTING=ON" -e "RUN_TEST=ON" paddlepaddle/paddle_manylinux_devel:cuda8.0_cudnn5 bash -x /paddle/paddle/scripts/docker/build.sh
如果不使用Docker,可以执行ctest命令即可: 如果不使用Docker,可以执行ctest命令即可:
......
...@@ -223,7 +223,7 @@ ...@@ -223,7 +223,7 @@
<div class="highlight-bash"><div class="highlight"><pre><span></span>git clone https://github.com/PaddlePaddle/Paddle.git <div class="highlight-bash"><div class="highlight"><pre><span></span>git clone https://github.com/PaddlePaddle/Paddle.git
<span class="nb">cd</span> Paddle <span class="nb">cd</span> Paddle
<span class="c1"># 如果使用Docker编译环境,执行下面的命令编译CPU-Only的二进制</span> <span class="c1"># 如果使用Docker编译环境,执行下面的命令编译CPU-Only的二进制</span>
docker run -it -v <span class="nv">$PWD</span>:/paddle -e <span class="s2">&quot;WITH_GPU=OFF&quot;</span> -e <span class="s2">&quot;WITH_TESTING=OFF&quot;</span> paddlepaddle/paddle_manylinux_devel:cuda8.0_cudnn5 bash -x paddle/scripts/docker/build.sh docker run -it -v <span class="nv">$PWD</span>:/paddle -e <span class="s2">&quot;WITH_GPU=OFF&quot;</span> -e <span class="s2">&quot;WITH_TESTING=OFF&quot;</span> paddlepaddle/paddle_manylinux_devel:cuda8.0_cudnn5 bash -x /paddle/paddle/scripts/docker/build.sh
<span class="c1"># 如果不使用Docker编译环境,执行下面的命令</span> <span class="c1"># 如果不使用Docker编译环境,执行下面的命令</span>
mkdir build mkdir build
<span class="nb">cd</span> build <span class="nb">cd</span> build
...@@ -232,7 +232,7 @@ make ...@@ -232,7 +232,7 @@ make
</pre></div> </pre></div>
</div> </div>
<p>编译完成后会在build/python/dist目录下生成输出的whl包,可以选在在当前机器安装也可以拷贝到目标机器安装:</p> <p>编译完成后会在build/python/dist目录下生成输出的whl包,可以选在在当前机器安装也可以拷贝到目标机器安装:</p>
<div class="highlight-bash"><div class="highlight"><pre><span></span>pip install python/dist/*.whl <div class="highlight-bash"><div class="highlight"><pre><span></span>pip install build/python/dist/*.whl
</pre></div> </pre></div>
</div> </div>
</div> </div>
...@@ -241,7 +241,7 @@ make ...@@ -241,7 +241,7 @@ make
<p>如果您期望在编译完成后立即执行所有的单元测试,可以按照下面的方法:</p> <p>如果您期望在编译完成后立即执行所有的单元测试,可以按照下面的方法:</p>
<p>使用Docker的情况下,设置 <code class="code docutils literal"><span class="pre">RUN_TEST=ON</span></code><code class="code docutils literal"><span class="pre">WITH_TESTING=ON</span></code> 就会在完成编译之后,立即执行单元测试。 <p>使用Docker的情况下,设置 <code class="code docutils literal"><span class="pre">RUN_TEST=ON</span></code><code class="code docutils literal"><span class="pre">WITH_TESTING=ON</span></code> 就会在完成编译之后,立即执行单元测试。
开启 <code class="code docutils literal"><span class="pre">WITH_GPU=ON</span></code> 可以指定同时执行GPU上的单元测试。</p> 开启 <code class="code docutils literal"><span class="pre">WITH_GPU=ON</span></code> 可以指定同时执行GPU上的单元测试。</p>
<div class="highlight-bash"><div class="highlight"><pre><span></span>docker run -it -v <span class="nv">$PWD</span>:/paddle -e <span class="s2">&quot;WITH_GPU=OFF&quot;</span> -e <span class="s2">&quot;WITH_TESTING=ON&quot;</span> -e <span class="s2">&quot;RUN_TEST=ON&quot;</span> paddlepaddle/paddle_manylinux_devel:cuda8.0_cudnn5 bash -x paddle/scripts/docker/build.sh <div class="highlight-bash"><div class="highlight"><pre><span></span>docker run -it -v <span class="nv">$PWD</span>:/paddle -e <span class="s2">&quot;WITH_GPU=OFF&quot;</span> -e <span class="s2">&quot;WITH_TESTING=ON&quot;</span> -e <span class="s2">&quot;RUN_TEST=ON&quot;</span> paddlepaddle/paddle_manylinux_devel:cuda8.0_cudnn5 bash -x /paddle/paddle/scripts/docker/build.sh
</pre></div> </pre></div>
</div> </div>
<p>如果不使用Docker,可以执行ctest命令即可:</p> <p>如果不使用Docker,可以执行ctest命令即可:</p>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册