- Build Paddlepaddle docker images:
cd ${PADDLE_SOURCE_DIR} && docker build -t paddle:dev .
- Add docker to linux X11 for GUI
xhost + local:docker
xhost + local:nvidia-docker
if you are need to use GPU
- Go to
${PADDLE_SOURCE_DIR}
, start docker and mount paddle's source code to/paddle
.
sudo nvidia-docker run -v $PWD:/paddle -it -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix paddle:dev bash
- Download, untar and install Clion through command line.
wget https://download.jetbrains.com/cpp/CLion-2018.1.5.tar.gz # Download
tar -xzf CLion-2018.1.5.tar.gz # untar
bash clion-2018.1.5/bin/clion.sh & # start clion in backgroun
And that's it.
libXtst.so.6: cannot open shared object file: No such file or directory
apt-get update && apt-get install libxtst6
Tips:
- Create symbolic links so we don't need to
pip install paddle
everytime we compilepython_paddle
. e.g.
ln -s /paddle/cmake-build-debug/python/build/lib-python/paddle /usr/local/lib/python2.7/dist-packages/paddle