PaddlePaddle目前唯一官方支持的运行的方式是Docker容器。因为Docker能在所有主要操作系统(包括Linux,Mac OS X和Windows)上运行。 请注意,您需要更改 `Dockers设置 <https://github.com/PaddlePaddle/Paddle/issues/627>`_ 才能充分利用Mac OS X和Windows上的硬件资源。
The above command will compile PaddlePaddle and create a Dockerfile for building production image. All the generated files are in the build directory. "WITH_GPU" controls if the generated production image supports GPU. "WITH_AVX" controls if the generated production image supports AVX. "WITH_TEST" controls if the unit test will be generated.
and SSH to this container using password :code:`root`:
The second step is to run:
.. code-block:: bash
ssh -p 2202 root@localhost
docker build -t paddle:prod -f build/Dockerfile .
An advantage is that we can run the PaddlePaddle container on a
remote server and SSH to it from a laptop.
The above command will generate the production image by copying the compiled PaddlePaddle program into the image.
When developing PaddlePaddle, you can edit PaddlePaddle source code
from outside of docker container using your favoriate editor. To