Skip to content

Commit 852f341

Browse files
committed
Add clean build section
1 parent ab53bea commit 852f341

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

doc/howto/dev/build_cn.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,15 @@
5656
有时候我们只想运行一个特定的单元测试,比如 `memory_test`,我们可以
5757

5858
```bash
59-
docker run -v $PWD:/paddle paddle:dev bash -c "cd /paddle/build; ctest -V -R memory_test"
59+
nvidia-docker run -v $PWD:/paddle paddle:dev bash -c "cd /paddle/build; ctest -V -R memory_test"
60+
```
61+
62+
5. 清理
63+
64+
有时候我们会希望清理掉已经下载的第三方依赖以及已经编译的二进制文件。此时只需要:
65+
66+
```bash
67+
rm -rf build
6068
```
6169

6270
## 为什么要 Docker 呀?

doc/howto/dev/build_en.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,15 @@ Nothing else. Not even Python and GCC, because you can install all build tools
5656
Sometimes we want to run a specific unit test, say `memory_test`, we can run
5757

5858
```bash
59-
docker run -v $PWD:/paddle paddle:dev bash -c "cd /paddle/build; ctest -V -R memory_test"
59+
nvidia-docker run -v $PWD:/paddle paddle:dev bash -c "cd /paddle/build; ctest -V -R memory_test"
60+
```
61+
62+
5. Clean Build.
63+
64+
Sometimes, we might want to clean all thirt-party dependents and built binaries. To do so, just
65+
66+
```bash
67+
rm -rf build
6068
```
6169

6270
## Docker, Or Not?

0 commit comments

Comments
 (0)