|
|
|
@ -142,6 +142,22 @@ to install CUDA driver and let Docker knows about it:
|
|
|
|
|
export DEVICES=$(\ls /dev/nvidia* | xargs -I{} echo '--device {}:{}')
|
|
|
|
|
docker run ${CUDA_SO} ${DEVICES} -it paddledev/paddle:gpu-latest
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UBUNTU MIRROR
|
|
|
|
|
-------------
|
|
|
|
|
|
|
|
|
|
Building Paddle Docker image hits some wrong with apt-get update, you
|
|
|
|
|
can use other UBUNTU MIRROR instead of the default
|
|
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
|
|
cd ~
|
|
|
|
|
git clone https://github.com/PaddlePaddle/Paddle.git
|
|
|
|
|
cd Paddle
|
|
|
|
|
git submodule update --init --recursive
|
|
|
|
|
docker build --build-arg UBUNTU_MIRROR="http://mirrors.163.com" -t paddle:cpu-avx -f paddle/scripts/docker/Dockerfile .
|
|
|
|
|
docker build --build-arg UBUNTU_MIRROR="http://mirrors.163.com" -t paddle:gpu-avx -f paddle/scripts/docker/Dockerfile.gpu .
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Non-AVX Images
|
|
|
|
|
--------------
|
|
|
|
|