Skip to content
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

Closed
wants to merge 6 commits into from
Closed

Conversation

sanbuphy
Copy link
Contributor

@sanbuphy sanbuphy commented Jun 19, 2023

PR types

Others

PR changes

Others

Describe

#377

HydrogenSulfate and others added 4 commits May 31, 2023 11:25
* update links README.md and index.md from latest to release/1.0(test=document_fix)

* update install_setup.md

* update docstrings
* update setup.py

* add acknowledgement
@paddle-bot
Copy link

paddle-bot bot commented Jun 19, 2023

Thanks for your contribution!

@sanbuphy sanbuphy changed the title add docker Add PaddleScience docker Jun 19, 2023
证书常用是奖品类型
@luotao1 luotao1 added the HappyOpenSource 快乐开源活动issue与PR label Jun 20, 2023
@HydrogenSulfate
Copy link
Collaborator

你好,build之后尝试训练,但遇到了下面截图里的问题,找不到GPU
image

image

@sanbuphy
Copy link
Contributor Author

你好,build之后尝试训练,但遇到了下面截图里的问题,找不到GPU image

image

启动docker的时候带上了 --gpus all了嘛

@HydrogenSulfate
Copy link
Collaborator

HydrogenSulfate commented Jun 29, 2023

你好,build之后尝试训练,但遇到了下面截图里的问题,找不到GPU image
image

启动docker的时候带上了 --gpus all了嘛

我的docker版本比较老,不支持 --gpus all 参数,所以我用的是 nvidia-docker run,理论上后者应该也能获取到GPU吧,但是就是检测不到

@sanbuphy
Copy link
Contributor Author

你好,build之后尝试训练,但遇到了下面截图里的问题,找不到GPU image
image

启动docker的时候带上了 --gpus all了嘛

我的docker版本比较老,不支持 --gpus all 参数,所以我用的是 nvidia-docker run,理论上后者应该也能获取到GPU吧,但是就是检测不到

进去后nvidia-smi是正常的吗,如果是正常的很可能是paddle的安装问题,run check也不行吗

@HydrogenSulfate
Copy link
Collaborator

你好,build之后尝试训练,但遇到了下面截图里的问题,找不到GPU image
image

启动docker的时候带上了 --gpus all了嘛

我的docker版本比较老,不支持 --gpus all 参数,所以我用的是 nvidia-docker run,理论上后者应该也能获取到GPU吧,但是就是检测不到

进去后nvidia-smi是正常的吗,如果是正常的很可能是paddle的安装问题,run check也不行吗

用不了nvidia-smi

Comment on lines +3 to +9
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/*
Copy link
Collaborator

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
Copy link
Collaborator

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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

文件结尾换行

docker/README.md Outdated
Copy link
Collaborator

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 中

Comment on lines +1 to +11
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
Copy link
Collaborator

@HydrogenSulfate HydrogenSulfate Jun 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. 可以不用 && 和 \ 压行
  2. 文件末尾换行

@HydrogenSulfate HydrogenSulfate changed the base branch from release/1.0 to develop July 1, 2023 06:57
@sanbuphy sanbuphy closed this Jul 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants