Installing from Sources ========================== * [1. Download and Setup](#download) * [2. Requirements](#requirements) * [3. Build on Ubuntu](#ubuntu) ## Download and Setup You can download PaddlePaddle from the [github source](https://github.com/PaddlePaddle/Paddle). ```bash git clone https://github.com/PaddlePaddle/Paddle paddle cd paddle ``` ## Requirements To compile the source code, your computer must be equipped with the following dependencies. - **Compiler**: GCC >= 4.8 or Clang >= 3.3 (AppleClang >= 5.1) and gfortran compiler - **CMake**: CMake >= 3.0 (at least CMake 3.4 on Mac OS X) - **BLAS**: MKL, OpenBlas or ATLAS - **Python**: only support Python 2.7 **Note:** For CUDA 7.0 and CUDA 7.5, GCC 5.0 and up are not supported! For CUDA 8.0, GCC versions later than 5.3 are not supported! ### Options PaddlePaddle supports some build options.
Optional | Description |
---|---|
WITH_GPU | Compile PaddlePaddle with NVIDIA GPU |
WITH_AVX | Compile PaddlePaddle with AVX intrinsics |
WITH_DSO | Compile PaddlePaddle with dynamic linked CUDA |
WITH_TESTING | Compile PaddlePaddle with unit testing |
WITH_SWIG_PY | Compile PaddlePaddle with inference api |
WITH_STYLE_CHECK | Compile PaddlePaddle with style check |
WITH_PYTHON | Compile PaddlePaddle with python interpreter |
WITH_DOUBLE | Compile PaddlePaddle with double precision |
WITH_RDMA | Compile PaddlePaddle with RDMA support |
WITH_TIMER | Compile PaddlePaddle with stats timer |
WITH_PROFILER | Compile PaddlePaddle with GPU profiler |
WITH_DOC | Compile PaddlePaddle with documentation |
ON_COVERALLS | Compile PaddlePaddle with code coverage |
COVERALLS_UPLOAD | Package code coverage data to coveralls |
ON_TRAVIS | Exclude special unit test on Travis CI |