Skip to content

Commit b24f6d0

Browse files
authored
accelerate test and add debug info
1 parent 6cee228 commit b24f6d0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

paddle/scripts/docker/build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
set -e
3+
set -xe
44

55
# Set BASE_IMAGE according to env variables
66
if [ ${WITH_GPU} == "ON" ]; then
@@ -34,7 +34,7 @@ cmake .. \
3434
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON
3535
make -j `nproc`
3636
if [ ${WITH_TESTING:-OFF} == "ON" ] && [ ${RUN_TEST:-OFF} == "ON" ] ; then
37-
make test
37+
ctest -j `nproc`
3838
fi
3939
make install
4040
pip install /usr/local/opt/paddle/share/wheels/*.whl
@@ -71,7 +71,7 @@ if [[ ${WOBOQ:-OFF} == 'ON' ]]; then
7171
cmake -DLLVM_CONFIG_EXECUTABLE=/usr/bin/llvm-config-3.8 \
7272
-DCMAKE_BUILD_TYPE=Release \
7373
.
74-
make
74+
make -j `nproc`
7575

7676
export WOBOQ_OUT=/woboq_out/paddle
7777
export BUILD_DIR=/paddle/build

0 commit comments

Comments
 (0)