-
Notifications
You must be signed in to change notification settings - Fork 47
/
.gitlab-ci.yml
64 lines (61 loc) · 3.29 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
Build OpenVX Sample Implementation:
stage: build
before_script:
- uname -a
- apt-get update -qq && apt-get install -y -qq cmake
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
- chmod 644 ~/.ssh/config
- git submodule sync --recursive
- git submodule update --init --recursive --remote
script:
- python Build.py --os=Linux --conf=Release
- python Build.py --os=Linux --conf=Debug
- export OPENVX_DIR=/builds/openvx/sample-impl/install/Linux/x64/Debug/
- export VX_TEST_DATA_PATH=/builds/openvx/sample-impl/cts/test_data/
# Mode:1 -- OpenVX Conformance for Vision
- mkdir build-cts-mode-1
- rm -rf install/Linux/x64/Debug
- python Build.py --os=Linux --arch=64 --conf=Debug --conf_vision
- cd build-cts-mode-1
- cmake -DOPENVX_INCLUDES=$OPENVX_DIR/include -DOPENVX_LIBRARIES=$OPENVX_DIR/bin/libopenvx.so\;$OPENVX_DIR/bin/libvxu.so\;pthread\;dl\;m\;rt -DOPENVX_CONFORMANCE_VISION=ON ../cts/
- cmake --build .
- LD_LIBRARY_PATH=./lib ./bin/vx_test_conformance
- cd ../
# Mode:2 -- OpenVX Conformance for Vision & Enhanced Vision
- mkdir build-cts-mode-2
- rm -rf install/Linux/x64/Debug
- python Build.py --os=Linux --arch=64 --conf=Debug --conf_vision --enh_vision
- cd build-cts-mode-2
- cmake -DOPENVX_INCLUDES=$OPENVX_DIR/include -DOPENVX_LIBRARIES=$OPENVX_DIR/bin/libopenvx.so\;$OPENVX_DIR/bin/libvxu.so\;pthread\;dl\;m\;rt -DOPENVX_CONFORMANCE_VISION=ON -DOPENVX_USE_ENHANCED_VISION=ON ../cts/
- cmake --build .
- LD_LIBRARY_PATH=./lib ./bin/vx_test_conformance
- cd ../
# Mode:3 -- OpenVX Conformance for Neural Net
- mkdir build-cts-mode-3
- rm -rf install/Linux/x64/Debug
- python Build.py --os=Linux --arch=64 --conf=Debug --conf_nn
- cd build-cts-mode-3
- cmake -DOPENVX_INCLUDES=$OPENVX_DIR/include -DOPENVX_LIBRARIES=$OPENVX_DIR/bin/libopenvx.so\;$OPENVX_DIR/bin/libvxu.so\;pthread\;dl\;m\;rt -DOPENVX_CONFORMANCE_NEURAL_NETWORKS=ON ../cts/
- cmake --build .
- LD_LIBRARY_PATH=./lib ./bin/vx_test_conformance
- cd ../
# Mode:4 -- OpenVX Conformance for NNEF Import
# -- TBD --
# Mode:5 -- OpenVX Conformance for Vision, Enhanced Vision, Neural Net, TBD:(NNEF Import), Import/Export, TBD:(NN_16, & Binary)
- mkdir build-cts-mode-4
- rm -rf install/Linux/x64/Debug
- python Build.py --os=Linux --arch=64 --conf=Debug --conf_vision --enh_vision --conf_nn --nn --ix
- cd build-cts-mode-4
- cmake -DOPENVX_INCLUDES=$OPENVX_DIR/include -DOPENVX_LIBRARIES=$OPENVX_DIR/bin/libopenvx.so\;$OPENVX_DIR/bin/libvxu.so\;pthread\;dl\;m\;rt -DOPENVX_CONFORMANCE_VISION=ON -DOPENVX_USE_ENHANCED_VISION=ON -DOPENVX_CONFORMANCE_NEURAL_NETWORKS=ON -DOPENVX_USE_NN=ON -DOPENVX_USE_IX=ON ../cts/
- cmake --build .
- LD_LIBRARY_PATH=./lib ./bin/vx_test_conformance
- cd ../
# Mode:6 -- OpenVX Conformance for Vision, Enhanced Vision, Pipelining, & Streaming
- rm -rf install/Linux/x64/Debug
- python Build.py --os=Linux --arch=64 --conf=Debug --conf_vision --enh_vision --pipelining --streaming
# -- TBD --