提交 9fdf3970 编写于 作者: Y Yi Wang

Update unit test running and CUDA

上级 f22ece92
......@@ -29,12 +29,25 @@ Nothing else. Not even Python and GCC, because you can install all build tools
docker run -v $PWD:/paddle paddle:dev
```
This builds a CUDA-enabled version and writes all binary outputs to directory `./build` of the local computer, other than the Docker container. If we want to build only the CPU part, we can type
```bash
docker run -e WITH_GPU=OFF -v $PWD:/paddle paddle:dev
```
4. Run unit tests.
To run all unit tests using the first GPU of a node:
```bash
docker run -v $PWD:/paddle paddle:dev "cd/build; ctest"
NV_GPU=0 nvidia-docker run -v $PWD:/paddle paddle:dev bash -c "cd /paddle/build; ctest"
```
If we used `WITH_GPU=OFF` at build time, it generates only CPU-based unit tests, and we don't need nvidia-docker to run them. We can just run
```bash
docker run -v $PWD:/paddle paddle:dev bash -c "cd /paddle/build; ctest"
```
## Docker, Or Not?
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册