-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add PaddleScience docker #396
Conversation
* update links README.md and index.md from latest to release/1.0(test=document_fix) * update install_setup.md * update docstrings
* fix panorama.png
* update setup.py * add acknowledgement
Thanks for your contribution! |
证书常用是奖品类型
RUN apt-get update && \ | ||
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ | ||
g++ gcc cmake wget xz-utils git make zlib1g-dev openssl libssl-dev libffi-dev libeigen3-dev sqlite3 libsqlite3-dev libx11-dev libgl1-mesa-dev bzip2 libbz2-dev liblzma-dev\ | ||
# pymesh dependency | ||
libeigen3-dev libgmp-dev libgmpxx4ldbl libmpfr-dev libboost-dev libboost-thread-dev libtbb-dev && \ | ||
apt-get clean autoclean && \ | ||
rm -rf /var/lib/apt/lists/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
能不用&&和反斜杠,改成多行 RUN吗?
|
||
RUN python3 -m pip install --upgrade pip && pip install pysdf open3d db-sqlite3 | ||
|
||
#install PaddleScience and pymesh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#后加空格
echo 'export LD_LIBRARY_PATH="/usr/local/cuda/lib64/"' >> ~/.bashrc && \ | ||
python3 -m pip install paddlepaddle-gpu==0.0.0.post116 -f https://www.paddlepaddle.org.cn/whl/linux/gpu/develop.html && \ | ||
cd PaddleScience && pip3 install -r requirements.txt && pip install -e . && \ | ||
rm -rf /src |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
文件结尾换行
docker/README.md
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
docker 使用方法写到 docs/zh/install_setup.md 中
git clone https://github.com/PaddlePaddle/PaddleScience.git | ||
|
||
cd PaddleScience && git checkout -b develop 6839369 && \ | ||
export PYTHONPATH=$PWD:$PYTHONPATH && \ | ||
cd examples/bracket && \ | ||
wget https://paddle-org.bj.bcebos.com/paddlescience/datasets/bracket/bracket_data.tar && \ | ||
tar -xvf bracket_data.tar | ||
|
||
cd .. | ||
docker build . -t paddlescience:latest | ||
docker run --gpus all -it -v ./:/work paddlescience |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- 可以不用 && 和 \ 压行
- 文件末尾换行
PR types
Others
PR changes
Others
Describe
#377