diff --git a/doc/fluid/beginners_guide/install/FAQ_en.md b/doc/fluid/beginners_guide/install/FAQ_en.md new file mode 100644 index 0000000000000000000000000000000000000000..b3218c85ee647e3daf7b08c80c23ed9b10ed3c02 --- /dev/null +++ b/doc/fluid/beginners_guide/install/FAQ_en.md @@ -0,0 +1,130 @@ +*** + + +# **FAQ** + +- How to compile python2.7 as a shared library under CentOS6? + + > Use the following instructions: + + + + ./configure --prefix=/usr/local/python2.7 --enable-shared + make && make install + + +- Ubuntu18.04 under libidn11 can not be found? + + > Use the following instructions: + + apt install libidn11 + +- When Ubuntu compiles, a lot of code segments are not recognized? + + > This may be caused by a mismatch in the cmake version. Please use the following command in the gcc installation directory: + + apt install gcc-4.8 g++-4.8 + cp gcc gcc.bak + cp g++ g++.bak + rm gcc + rm g++ + ln -s gcc-4.8 gcc + ln -s g++-4.8 g++ + + + + +- Encountered paddlepaddle*.whl is not a supported wheel on this platform? + + > The main reason for this problem is that there is no paddlepaddle installation package that matches the current system. Please check if the Python version is 2.7 series. In addition, the latest pip official source installation package defaults to the manylinux1 standard, you need to use the latest pip (>9.0.0) to install. You can update your pip by following these instructions: + + pip install --upgrade pip + or + + python -c "import pip; print(pip.pep425tags.get_supported())" + + > If the system supports linux_x86_64 and the installation package is manylinux1_x86_64, you need to upgrade the pip version to the latest; if the system supports manylinux1_x86_64 and the installation package (local) is linux_x86_64, you can rename this whl package to manylinux1_x86_64 and install it again. + +- Is there a problem with Docker compilation? + + > Please refer to [Issue12079](https://github.com/PaddlePaddle/Paddle/issues/12079) on GitHub. + +- What is Docker? + + > If you haven't heard of Docker, you can think of it as a virtualenv-like system, but it virtualises more than the Python runtime environment. + +- Is Docker still a virtual machine? + + > Someone uses a virtual machine to analogize to Docker. It should be emphasized that Docker does not virtualize any hardware. The compiler tools running in the Docker container are actually run directly on the native CPU and operating system. The performance is the same as installing the compiler on the machine. + +- Why use Docker? + + > Installing the tools and configurations in a Docker image standardizes the build environment. This way, if you encounter problems, others can reproduce the problem to help. In addition, for developers accustomed to using Windows and MacOS, there is no need to configure a cross-compilation environment using Docker. + +- Can I choose not to use Docker? + + > Of course you can. You can install development tools to the machine in the same way that you install them into Docker image. This document describes the Docker-based development process because it is easier than the other methods. + +- How hard is it to learn Docker? + + > It's not difficult to understand Docker. It takes about ten minutes to read this [article](https://zhuanlan.zhihu.com/p/19902938). + This can save you an hour of installing and configuring various development tools, as well as the need for new installations when switching machines. Don't forget that PaddlePaddle updates may lead to the need for new development tools. Not to mention the benefits of simplifying the recurrence of problems. + +- Can I use an IDE? + + > Of course, because the source code is on the machine. By default, the IDE calls a program like make to compile the source code. We only need to configure the IDE to call the Docker command to compile the source code. + Many PaddlePaddle developers use Emacs. They add two lines to their `~/.emacs` configuration file. + `global-set-key "\C-cc" 'compile` + `setq compile-command "docker run --rm -it -v $(git rev-parse --show- Toplevel): /paddle paddle:dev"` + You can start the compilation by pressing `Ctrl-C` and` c`. + +- Can I compile in parallel? + + > Yes. Our Docker image runs a [Bash script](https://github.com/PaddlePaddle/Paddle/blob/develop/paddle/paddle/scripts/paddle_build.sh). This script calls `make -j$(nproc)` to start as many processes as the CPU cores to compile in parallel. + +- Docker needs sudo? + + > If you develop with your own computer, you will naturally have admin privileges (sudo). If you are developing from a public computer, you need to ask the administrator to install and configure Docker. In addition, the PaddlePaddle project is working hard to support other container technologies that don't require sudo, such as rkt. + +- Is compiling slow on Windows/MacOS? + + > Docker runs on both Windows and MacOS. However, it is actually running on a Linux virtual machine. It may be necessary to pay attention to allocate more CPU and memory to this virtual machine to ensure efficient compilation. Please refer to [issue627](https://github.com/PaddlePaddle/Paddle/issues/627) for details. + +- Not enough disk? + + > In the example in this article, the `--rm` parameter is used in the `docker run`command to ensure that containers after the end of the run are not retained on disk. You can use the `docker ps -a` command to see containers that are stopped but not deleted. The `docker build` command sometimes produces some intermediate results, an image with no name, and it also occupies the disk. You can refer to this [article](https://zaiste.net/removing_docker_containers/) to clean up this content. + +- Can't I open `http://localhost:8888/` when using the book under DockerToolbox? + + > You need to replace localhost with virtual machine ip. Generally type this in the browser: `http://192.168.99.100:8888/` + +- After the pip install gpu version of PaddlePaddle runing, the SegmentFault appears as follows: + + @ 0x7f6c8d214436 paddle::platform::EnforceNotMet::EnforceNotMet() + + @ 0x7f6c8dfed666 paddle::platform::GetCUDADeviceCount() + + @ 0x7f6c8d2b93b6 paddle::framework::InitDevices() + + > The main reason for this problem is that your graphics card driver is lower than the corresponding CUDA version. Please ensure that your graphics card driver supports the CUDA version used. + + +- `Fatal Python error: PyThreadState_Get: no current thread running` error occurs when importing paddle.fluid after installing PaddlePaddle on MacOS. + + + - For Python2.7.x (install by brew): Please use `export LD_LIBRARY_PATH=/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7 && export DYLD_LIBRARY_PATH=/usr/ Local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7` + - For Python2.7.x (install by Python.org): Please use `export LD_LIBRARY_PATH=/Library/Frameworks/Python.framework/Versions/2.7 && export DYLD_LIBRARY_PATH=/Library/Frameworks/Python.framework/Versions/2.7` + - For Python3.5.x (install by Python.org): Please use `export LD_LIBRARY_PATH=/Library/Frameworks/Python.framework/Versions/3.5/ && export DYLD_LIBRARY_PATH=/Library/Frameworks/Python.framework/Versions/3.5 /` + + +- Use customized openblas under MACOS. See issue for details: + + >[ISSUE 13217](https://github.com/PaddlePaddle/Paddle/issues/13721) + +- Swig has been installed but there is still a problem that swig can't find. See issue for details: + + >[ISSUE 13759](https://github.com/PaddlePaddle/Paddle/issues/13759) + +- The question "target pattern contain no '%'." appears. See issue for details: + + >[ISSUE 13806](https://github.com/PaddlePaddle/Paddle/issues/13806) diff --git a/doc/fluid/beginners_guide/install/Tables_en.md b/doc/fluid/beginners_guide/install/Tables_en.md new file mode 100644 index 0000000000000000000000000000000000000000..9041a2deb66a56e03fdf15a3eb0350e87b0cd50b --- /dev/null +++ b/doc/fluid/beginners_guide/install/Tables_en.md @@ -0,0 +1,665 @@ +*** +# APPENDIX + + +## Compile Dependency Table + +
+
Dependency package name | +Version | +Description | +Installation command | +
---|---|---|---|
CMake | +3.4 | ++ | + |
GCC | +4.8 / 5.4 | +recommends using devtools2 for CentOS | ++ |
Python | +2.7.x. | +depends on libpython2.7.so | + apt install python-dev or yum install python-devel |
+
SWIG | +at least 2.0 | ++ | apt install swig or yum install swig |
+
wget | +any | ++ | apt install wget or yum install wget |
+
openblas | +any | ++ | + |
pip | +at least 9.0.1 | ++ | apt install python-pip or yum install Python-pip |
+
numpy | +>=1.12.0 | ++ | pip install numpy==1.14.0 |
+
protobuf | +3.1.0 | ++ | pip install protobuf==3.1.0 |
+
wheel | +any | ++ | pip install wheel |
+
patchELF | +any | ++ | apt install patchelf or read github patchELF official documentation |
+
go | +>=1.8 | +optional | ++ |
+
Option | +Description | +Default | +
---|---|---|
WITH_GPU | +Whether to support GPU | +ON | +
WITH_C_API | +Whether to compile CAPI | +OFF | +
WITH_DOUBLE | +Whether to use double precision floating point numeber | +OFF | +
WITH_DSO | +whether to load CUDA dynamic libraries dynamically at runtime, instead of statically loading CUDA dynamic libraries. | +ON | +
WITH_AVX | +whether to compile PaddlePaddle binaries file containing the AVX instruction set | +ON | +
WITH_PYTHON | +Whether the PYTHON interpreter is embedded | +ON | +
WITH_STYLE_CHECK | +Whether to perform code style checking at compile time | +ON | +
WITH_TESTING | +Whether to turn on unit test | +OFF | +
WITH_DOC | +Whether to compile Chinese and English documents | +OFF | +
WITH_SWIG_PY | +Whether to compile PYTHON's SWIG interface, which can be used for predicting and customizing training | +Auto | +
WITH_GOLANG | +Whether to compile the fault-tolerant parameter server of the go language | +OFF | +
WITH_MKL | +Whether to use the MKL math library, if not,using OpenBLAS | +ON | +
WITH_SYSTEM_BLAS | +Whether to use the system's BLAS | +OFF | +
WITH_DISTRIBUTE | +Whether to Compile with distributed version | +OFF | +
WITH_MKL | +Whether to uses the MKL math library, if not, using OpenBLAS | +ON | +
WITH_RDMA | +Whether to compile the relevant parts that supports RDMA | +OFF | +
WITH_BRPC_RDMA | +Whether to use BRPC RDMA as RPC protocol | +OFF | +
ON_INFER | +Whether to turn on prediction optimization | +OFF | +
DWITH_ANAKIN | +Whether to Compile ANAKIN | +OFF | +
+
Version Number | +Release Discription | +
---|---|
paddlepaddle==[version code] such as paddlepaddle==1.0.1 (download version 1.0.1 which only supports CPU PaddlePaddle) | +Only support the corresponding version of the CPU PaddlePaddle, please refer to Pypi for the specific version. | +
paddlepaddle-gpu==1.0.1 | +Using version 1.0.1 compiled with CUDA 9.0 and cuDNN 7 | +
paddlepaddle-gpu==1.0.1.post87 | +Using version 1.0.1 compiled with CUDA 8.0 and cuDNN 7 | +
paddlepaddle-gpu==1.0.1.post85 | +Using version 1.0.1 compiled with CUDA 8.0 and cuDNN 5 | +
paddlepaddle-gpu==1.0.0 | +Using version 1.0.0 compiled with CUDA 9.0 and cuDNN 7 | +
paddlepaddle-gpu==1.0.0.post87 | +Using version 1.0.0 compiled with CUDA 8.0 and cuDNN 7 | +
paddlepaddle-gpu==1.0.0.post85 | +Using version 1.0.0 compiled with CUDA 8.0 and cuDNN 5 | +
paddlepaddle-gpu==0.15.0 | +Using version 0.15.0 compiled with CUDA 9.0 and cuDNN 7 | +
paddlepaddle-gpu==0.15.0.post87 | +Using version 0.15.0 compiled with CUDA 8.0 and cuDNN 7 | +
paddlepaddle-gpu==0.15.0.post85 | +Using version 0.15.0 compiled with CUDA 8.0 and cuDNN 5 | +
paddlepaddle-gpu==0.14.0 | +Using version 0.15.0 compiled with CUDA 9.0 and cuDNN 7 | +
paddlepaddle-gpu==0.14.0.post87 | +Using version 0.15.0 compiled with CUDA 8.0 and cuDNN 7 | +
paddlepaddle-gpu==0.14.0.post85 | +Using version 0.15.0 compiled with CUDA 8.0 and cuDNN 5 | +
paddlepaddle-gpu==0.13.0 | +Using version 0.13.0 compiled with CUDA 9.0 and cuDNN 7 | +
paddlepaddle-gpu==0.12.0 | +Using version 0.12.0 compiled with CUDA 8.0 and cuDNN 5 | +
paddlepaddle-gpu==0.11.0.post87 | +Using version 0.11.0 compiled with CUDA 8.0 and cuDNN 7 | +
paddlepaddle-gpu==0.11.0.post85 | +Using version 0.11.0 compiled with CUDA 8.0 and cuDNN 5 | +
paddlepaddle-gpu==0.11.0 | +Using version 0.11.0 compiled with CUDA 7.5 and cuDNN 5 | +
+
Version Number | +Release Description | +
---|---|
hub.baidubce.com/paddlepaddle/paddle:latest | +The latest pre-installed image of the PaddlePaddle CPU version | +
hub.baidubce.com/paddlepaddle/paddle:latest-dev | +The latest PaddlePaddle development environment | +
hub.baidubce.com/paddlepaddle/paddle:[Version] | +Replace version with a specific version, preinstalled PaddlePaddle image in historical version | +
hub.baidubce.com/paddlepaddle/paddle:latest-gpu | +The latest pre-installed image of the PaddlePaddle GPU version | +
+
+