未验证 提交 2f59fc4c 编写于 作者: reachfoo's avatar reachfoo 提交者: GitHub

add ci_add_runner(done) (#995)

* add ci_add_runner

* add ci_add_runner

* add ci_add_runner

* add ci_add_runner

* add ci_add_runner

* add ci_add_runner

* finished add ci_add_runner

* finished add ci runner

* finished2 add ci runner

* finished3 add ci runner

* finished3 add ci runner

* finished4 add ci runner

* finished5 add ci runner

* finished6 add ci runner

* apply code-format changes

* Update build-and-test.yml
Co-authored-by: NRudyFoo <RudyFoo@users.noreply.github.com>
上级 9c32de2d
......@@ -140,6 +140,55 @@ jobs:
cd build
../tests/test_arm64.sh
linux-armv8-cpu-gcc-timvx:
runs-on: khadas-vim3
steps:
- uses: actions/checkout@v2.3.4
- name: tim-vx
run: |
git clone https://github.com/VeriSilicon/TIM-VX.git
cp -rvf ./TIM-VX/include ./source/device/tim-vx/
cp -rvf ./TIM-VX/src ./source/device/tim-vx/
rm ./source/device/tim-vx/src/tim/vx/*_test.cc
rm ./source/device/tim-vx/src/tim/vx/ops/*_test.cc
- name: configure
run: mkdir build && cd build && cmake -GNinja -DTENGINE_BUILD_TESTS=ON -DTENGINE_ENABLE_TIM_VX=ON ..
- name: build
run: cmake --build build -j 6
- name: models
run: |
cd build
actions=/home/khadas/actions-runner
ln -s ${actions}/ci_test/models/ models
ln -s ${actions}/ci_test/images/ images
ln -s ${actions}/ci_test/arm64_data/ data
- name: test
run: |
chmod +x ./tests/test_arm64_real.sh
cd build
../tests/test_arm64_real.sh
linux-armv8-cpu-gcc-AGX-Xaiver:
runs-on: AGX-xaiver
steps:
- uses: actions/checkout@v2.3.4
- name: configure
run: mkdir build && cd build && cmake -GNinja -DTENGINE_BUILD_TESTS=ON -DTENGINE_ENABLE_TENSORRT=ON ..
- name: build
run: cmake --build build -j 8
- name: models
run: |
cd build
actions=/home/nvidia/actions-runner
ln -s ${actions}/ci_test/models/ models
ln -s ${actions}/ci_test/images/ images
ln -s ${actions}/ci_test/arm64_data/ data
- name: test
run: |
chmod +x ./tests/test_arm64_real.sh
cd build
../tests/test_arm64_real.sh
linux-gcc-mipsisa64r6el:
runs-on: ubuntu-20.04
steps:
......
......@@ -172,3 +172,84 @@ jobs:
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: build/lcov.info
linux-gcc-arm64-timvx-khadas:
runs-on: khadas-vim3
steps:
- uses: actions/checkout@v2.3.4
- name: tim-vx
run: |
git clone https://github.com/VeriSilicon/TIM-VX.git
cp -rvf ./TIM-VX/include ./source/device/tim-vx/
cp -rvf ./TIM-VX/src ./source/device/tim-vx/
rm ./source/device/tim-vx/src/tim/vx/*_test.cc
rm ./source/device/tim-vx/src/tim/vx/ops/*_test.cc
- name: configure
run: mkdir build && cd build && cmake -GNinja -DCMAKE_BUILD_TYPE=debug -DTENGINE_ENABLE_TIM_VX=ON -DTENGINE_ENABLE_TIM_VX_INTEGRATION=ON -DTENGINE_COVERAGE=ON -DTENGINE_BUILD_TESTS=ON ..
- name: build
run: cmake --build build -j 6
- name: models
run: |
cd build
actions=/home/khadas/actions-runner
ln -s ${actions}/ci_test/images/ images
git clone https://github.com/BUG1989/tengine_test_data.git
git clone https://github.com/BUG1989/onnx_op_test_data.git onnx_node
- name: test-timvx
run: |
cd build
./examples/tm_classification_timvx -m ./tengine_test_data/mobilenet_uint8.tmfile -i ./images/cat.jpg -g 224,224, -s 0.017,0.017,0.017
./examples/tm_classification_timvx -m ./tengine_test_data/squeezenet_uint8.tmfile -i ./images/cat.jpg -g 227,227, -s 0.017,0.017,0.017
./examples/tm_yolov5s_timvx -m ./tengine_test_data/yolov5s_uint8.tmfile -i ./images/ssd_dog.jpg
- name: test-op
run: |
cd build
ctest --output-on-failure
- name: lcov-collect
run: |
cd build
lcov -d ./source -c -o lcov.info
lcov -r lcov.info '*/source/device/cpu/*' -o lcov.info
lcov -r lcov.info '/usr/*' -o lcov.info
lcov --list lcov.info
- name: codecov
uses: codecov/codecov-action@v2.0.2
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: build/lcov.info
linux-gcc-arm64-AGX-xaiver:
runs-on: AGX-xaiver
steps:
- uses: actions/checkout@v2.3.4
- name: configure
run: mkdir build && cd build && cmake -GNinja -DCMAKE_BUILD_TYPE=debug -DTENGINE_ENABLE_TENSORRT=ON -DTENGINE_COVERAGE=ON -DTENGINE_BUILD_TESTS=ON ..
- name: build
run: cmake --build build -j 6
- name: models
run: |
cd build
actions=/home/nvidia/actions-runner
ln -s ${actions}/ci_test/images/ images
git clone https://github.com/BUG1989/tengine_test_data.git
git clone https://github.com/BUG1989/onnx_op_test_data.git onnx_node
- name: test-tensorrt
run: |
cd build
./examples/tm_classification_trt -m ./tengine_test_data/mobilenet.tmfile -i ./images/cat.jpg -g 224,224, -s 0.017,0.017,0.017
- name: test-op
run: |
cd build
export TG_DEBUG_REF=1
ctest --output-on-failure
- name: lcov-collect
run: |
cd build
lcov -d ./source -c -o lcov.info
lcov -r lcov.info '*/source/device/cpu/*' -o lcov.info
lcov -r lcov.info '/usr/*' -o lcov.info
lcov --list lcov.info
- name: codecov
uses: codecov/codecov-action@v2.0.2
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: build/lcov.info
#!/bin/bash -
set -x
test_models=(
" ./tests/test_model_classification -m squeezenet -i images/cat.jpg -g 227,227 -w 104.007,116.669,122.679 -s 1,1,1"
" ./tests/test_model_classification -m mobilenet -i images/cat.jpg -g 224,224 -w 104.007,116.669,122.679 -s 0.017,0.017,0.017"
" ./tests/test_model_classification -m mobilenet_v2 -i images/cat.jpg -g 224,224 -w 104.007,116.669,122.679 -s 0.017,0.017,0.017"
" ./tests/test_model_classification -m googlenet -i images/cat.jpg -g 224,224 -w 104.007,116.669,122.679 -s 1,1,1"
" ./tests/test_model_classification -m inception_v3 -i images/cat.jpg -g 395,395 -w 104.007,116.669,122.679 -s 0.0078,0.0078,0.0078"
" ./tests/test_model_classification -m inception_v4 -i images/cat.jpg -g 299,299 -w 104.007,116.669,122.679 -s 0.007843,0.007843,0.007843"
" ./tests/test_model_classification -m resnet50 -i images/bike.jpg -g 224,224 -w 104.007,116.669,122.679 -s 1,1,1"
" ./tests/test_model_classification -m mnasnet -i images/cat.jpg -g 224,224 -w 104.007,116.669,122.679 -s 0.017,0.017,0.017"
" ./tests/test_model_classification -m shufflenet_1xg3 -i images/cat.jpg -g 224,224 -w 103.940,116.780,123.680 -s 0.017,0.017,0.017"
" ./tests/test_model_classification -m shufflenet_v2 -i images/cat.jpg -g 224,224 -w 103.940,116.780,123.680 -s 0.00392156,0.00392156,0.00392156"
)
for (( i = 0 ; i < ${#test_models[@]} ; i++ ))
do
echo ${test_models[$i]}
echo ${test_models[$i]} | xargs -i sh -c "{}"
if [ "$?" != 0 ]; then
echo "failed"
exit 1
fi
done
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册