diff --git a/doc/_sources/build/docker_install.txt b/doc/_sources/build/docker_install.txt index 542b9bac27afb84d2b41e5295145540bf2aa5485..e95de35f4da35fee511551f13bc6026532cce5c3 100644 --- a/doc/_sources/build/docker_install.txt +++ b/doc/_sources/build/docker_install.txt @@ -69,7 +69,7 @@ If you want to launch container with GPU support, you need to set some environme .. code-block:: bash - export CUDA_SO="$(\ls /usr/lib64/libcuda* | xargs -I{} echo '-v {}:{}') $(\ls /usr/lib64/libnvidia* | xargs -I{} echo '-v {}:{}" + export CUDA_SO="$(\ls /usr/lib64/libcuda* | xargs -I{} echo '-v {}:{}') $(\ls /usr/lib64/libnvidia* | xargs -I{} echo '-v {}:{}')" export DEVICES=$(\ls /dev/nvidia* | xargs -I{} echo '--device {}:{}') docker run ${CUDA_SO} ${DEVICES} -it paddledev/paddle:gpu-latest diff --git a/doc/build/docker_install.html b/doc/build/docker_install.html index 4d37c99847203dbada91b51919bd5e4da33160dd..40670bc0c8f7140402bd96300c2af4671834583c 100644 --- a/doc/build/docker_install.html +++ b/doc/build/docker_install.html @@ -147,9 +147,9 @@ var _hmt = _hmt || [];

If you want to launch container with GPU support, you need to set some environment variables at the same time:

-
export CUDA_SO="$(\ls /usr/lib64/libcuda* | xargs -I{} echo '-v {}:{}') $(\ls /usr/lib64/libnvidia* | xargs -I{} echo '-v {}:{}"
-export DEVICES=$(\ls /dev/nvidia* | xargs -I{} echo '--device {}:{}')
-docker run ${CUDA_SO} ${DEVICES} -it paddledev/paddle:gpu-latest
+
export CUDA_SO="$(\ls /usr/lib64/libcuda* | xargs -I{} echo '-v {}:{}') $(\ls /usr/lib64/libnvidia* | xargs -I{} echo '-v {}:{}')"
+export DEVICES=$(\ls /dev/nvidia* | xargs -I{} echo '--device {}:{}')
+docker run ${CUDA_SO} ${DEVICES} -it paddledev/paddle:gpu-latest