|
|
|
@ -68,7 +68,7 @@ As a simple example, consider the following:
|
|
|
|
|
|
|
|
|
|
1. **BLAS Dependencies(optional)**
|
|
|
|
|
|
|
|
|
|
CMake will search BLAS libraries from system. If not found, OpenBLAS will be downloaded, built and installed automatically.
|
|
|
|
|
CMake will search BLAS libraries from the system. If not found, OpenBLAS will be downloaded, built and installed automatically.
|
|
|
|
|
To utilize preinstalled BLAS, you can simply specify MKL, OpenBLAS or ATLAS via `MKL_ROOT`, `OPENBLAS_ROOT` or `ATLAS_ROOT`.
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
@ -131,9 +131,9 @@ As a simple example, consider the following:
|
|
|
|
|
To build GPU version, you will need the following installed:
|
|
|
|
|
|
|
|
|
|
1. a CUDA-capable GPU
|
|
|
|
|
2. A supported version of Linux with a gcc compiler and toolchain
|
|
|
|
|
2. A supported version of Linux with a GCC compiler and toolchain
|
|
|
|
|
3. NVIDIA CUDA Toolkit (available at http://developer.nvidia.com/cuda-downloads)
|
|
|
|
|
4. NVIDIA cuDNN Library (availabel at https://developer.nvidia.com/cudnn)
|
|
|
|
|
4. NVIDIA cuDNN Library (available at https://developer.nvidia.com/cudnn)
|
|
|
|
|
|
|
|
|
|
The CUDA development environment relies on tight integration with the host development environment,
|
|
|
|
|
including the host compiler and C runtime libraries, and is therefore only supported on
|
|
|
|
@ -172,6 +172,7 @@ export PATH=<path to install>/bin:$PATH
|
|
|
|
|
# install PaddlePaddle Python modules.
|
|
|
|
|
sudo pip install <path to install>/opt/paddle/share/wheels/*.whl
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## <span id="centos">Build on Centos 7</span>
|
|
|
|
|
|
|
|
|
|
### Install Dependencies
|
|
|
|
@ -192,9 +193,9 @@ sudo pip install <path to install>/opt/paddle/share/wheels/*.whl
|
|
|
|
|
To build GPU version, you will need the following installed:
|
|
|
|
|
|
|
|
|
|
1. a CUDA-capable GPU
|
|
|
|
|
2. A supported version of Linux with a gcc compiler and toolchain
|
|
|
|
|
2. A supported version of Linux with a GCC compiler and toolchain
|
|
|
|
|
3. NVIDIA CUDA Toolkit (available at http://developer.nvidia.com/cuda-downloads)
|
|
|
|
|
4. NVIDIA cuDNN Library (availabel at https://developer.nvidia.com/cudnn)
|
|
|
|
|
4. NVIDIA cuDNN Library (available at https://developer.nvidia.com/cudnn)
|
|
|
|
|
|
|
|
|
|
The CUDA development environment relies on tight integration with the host development environment,
|
|
|
|
|
including the host compiler and C runtime libraries, and is therefore only supported on
|
|
|
|
@ -222,7 +223,7 @@ mkdir build && cd build
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Finally, you can build and install PaddlePaddle:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
# you can add build option here, such as:
|
|
|
|
|
cmake3 .. -DCMAKE_INSTALL_PREFIX=<path to install>
|
|
|
|
|