There was an error while loading. Please reload this page.
1 parent 6cee228 commit b24f6d0Copy full SHA for b24f6d0
paddle/scripts/docker/build.sh
@@ -1,6 +1,6 @@
1
#!/bin/bash
2
3
-set -e
+set -xe
4
5
# Set BASE_IMAGE according to env variables
6
if [ ${WITH_GPU} == "ON" ]; then
@@ -34,7 +34,7 @@ cmake .. \
34
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON
35
make -j `nproc`
36
if [ ${WITH_TESTING:-OFF} == "ON" ] && [ ${RUN_TEST:-OFF} == "ON" ] ; then
37
- make test
+ ctest -j `nproc`
38
fi
39
make install
40
pip install /usr/local/opt/paddle/share/wheels/*.whl
@@ -71,7 +71,7 @@ if [[ ${WOBOQ:-OFF} == 'ON' ]]; then
71
cmake -DLLVM_CONFIG_EXECUTABLE=/usr/bin/llvm-config-3.8 \
72
-DCMAKE_BUILD_TYPE=Release \
73
.
74
- make
+ make -j `nproc`
75
76
export WOBOQ_OUT=/woboq_out/paddle
77
export BUILD_DIR=/paddle/build
0 commit comments