Skip to content

Commit e799b7f

Browse files
authored
CI: fix gcu ci (PaddlePaddle#2214)
* CI: fix gcu ci * fix code_style
1 parent a9e8b29 commit e799b7f

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

backends/gcu/ci_test.sh

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,23 @@ export PADDLE_CUSTOM_PATH=`python -c "import re, paddle; print(re.compile('__ini
2828

2929
cd backends/gcu
3030
mkdir -p build && cd build
31-
cmake .. -DWITH_TESTING=ON -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DPY_VERSION=3.10
32-
make -j $(nproc)
31+
cmake .. -DWITH_TESTING=ON -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DPY_VERSION=3.10 || {
32+
echo "ERROR: CMake configuration failed";
33+
exit 1;
34+
}
3335

34-
python -m pip install --force-reinstall -U dist/paddle_custom_gcu*.whl
35-
ctest -j4 --output-on-failure
36+
make -j $(nproc) || {
37+
echo "ERROR: Build failed";
38+
exit 1;
39+
}
40+
41+
python -m pip install --force-reinstall -U dist/paddle_custom_gcu*.whl || {
42+
echo "ERROR: paddle_custom_gcu package installation failed";
43+
exit 1;
44+
}
45+
ctest -j4 --output-on-failure || {
46+
echo "ERROR: Tests failed";
47+
exit 1;
48+
}
49+
50+
echo "All test pass!"

0 commit comments

Comments
 (0)