Skip to content

Commit 94b4f3b

Browse files
committed
Fix LIT tests
1 parent d3f03a4 commit 94b4f3b

33 files changed

+27
-3052
lines changed

.github/workflows/job_build_mlir_linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ jobs:
8787
Build:
8888
name: Build
8989
needs: Cache
90-
if: needs.Cache.outputs.cache-hit != 'true'
90+
if: ${{ always() && needs.Cache.outputs.cache-hit != 'true' }}
9191
runs-on: ${{ inputs.build-runner }}
9292
timeout-minutes: 240
9393
env:

.github/workflows/job_test_mlir_linux.yml

Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,16 @@ jobs:
5151

5252
- name: Prepare environment
5353
run: |
54+
echo "PROF_PARSER_PATH=$(realpath "${OPENVINO_INSTALL_DIR}/tools/prof_parser")" >> $GITHUB_ENV
55+
echo "LSP_SERVER_PATH=$(realpath "${OPENVINO_INSTALL_DIR}/tools/npu-lsp-server")" >> $GITHUB_ENV
56+
echo "VPUX_OPT_PATH=$(realpath "${OPENVINO_INSTALL_DIR}/tools/vpux-opt")" >> $GITHUB_ENV
5457
chmod +x ${OPENVINO_INSTALL_DIR}/setupvars.sh
58+
chmod +x ${OPENVINO_INSTALL_DIR}/tests/FileCheck
59+
chmod +x ${OPENVINO_INSTALL_DIR}/tests/flatc
60+
chmod +x ${OPENVINO_INSTALL_DIR}/tests/not
61+
chmod +x ${OPENVINO_INSTALL_DIR}/tools/prof_parser/prof_parser
62+
chmod +x ${OPENVINO_INSTALL_DIR}/tools/npu-lsp-server/npu-lsp-server
63+
chmod +x ${OPENVINO_INSTALL_DIR}/tools/vpux-opt/vpux-opt
5564
5665
- name: Run OV NPU Unit tests
5766
if: ${{ inputs.run-unit-tests }}
@@ -71,26 +80,19 @@ jobs:
7180
if: ${{ inputs.run-lit-tests }}
7281
run: |
7382
source ${OPENVINO_INSTALL_DIR}/setupvars.sh
74-
export PATH=$PATH:${OPENVINO_INSTALL_DIR}/tools/prof_parser
75-
export PATH=$PATH:${OPENVINO_INSTALL_DIR}/tools/npu-loader
76-
export PATH=$PATH:${OPENVINO_INSTALL_DIR}/tools/npu-lsp-server
77-
export PATH=$PATH:${OPENVINO_INSTALL_DIR}/tools/vpux-opt
78-
export PATH=$PATH:${OPENVINO_INSTALL_DIR}/tools/vpux-translate
83+
export PATH=$PATH:${PROF_PARSER_PATH}:${LSP_SERVER_PATH}:${VPUX_OPT_PATH}
7984
cd ${OPENVINO_INSTALL_DIR}/tests/lit-tests
8085
python3 ./lit-tool/lit.py -v --param arch=NPU37XX NPU/NPU
8186
8287
- name: Run NPU40XX LIT tests
8388
if: ${{ inputs.run-lit-tests }}
8489
run: |
8590
source ${OPENVINO_INSTALL_DIR}/setupvars.sh
86-
export PATH=$PATH:${OPENVINO_INSTALL_DIR}/tools/prof_parser
87-
export PATH=$PATH:${OPENVINO_INSTALL_DIR}/tools/npu-loader
88-
export PATH=$PATH:${OPENVINO_INSTALL_DIR}/tools/npu-lsp-server
89-
export PATH=$PATH:${OPENVINO_INSTALL_DIR}/tools/vpux-opt
90-
export PATH=$PATH:${OPENVINO_INSTALL_DIR}/tools/vpux-translate
91+
export PATH=$PATH:${PROF_PARSER_PATH}:${LSP_SERVER_PATH}:${VPUX_OPT_PATH}
9192
cd ${OPENVINO_INSTALL_DIR}/tests/lit-tests
9293
python3 ./lit-tool/lit.py -v --param arch=NPU40XX NPU/NPU
9394
95+
# TODO: This is a demonstration job. It will be separated into downloading and compilation actions and a config.
9496
CompilationTests:
9597
name: Compilation tests
9698
if: ${{ inputs.run-compilation-tests }}
@@ -122,15 +124,26 @@ jobs:
122124
snapshot_download(repo_id="onnx-community/mobilenet_v2_1.0_224", local_dir="${{ env.MODELS_DIR }}/mobilenet_v2_1.0_224")
123125
shell: python
124126

125-
- name: Compile resnet50-onnx
127+
- name: Compile resnet50-onnx on MTL
126128
run: |
127129
source ${OPENVINO_INSTALL_DIR}/setupvars.sh
128130
${OPENVINO_INSTALL_DIR}/tools/compile_tool/compile_tool -m ${MODELS_DIR}/resnet50-onnx/model.onnx -d NPU.3720 -log_level LOG_INFO -il NCHW -iml NCHW -ol NC -oml NC -c common_compilation_config.conf
131+
132+
- name: Compile resnet50-onnx on LNL
133+
run: |
134+
source ${OPENVINO_INSTALL_DIR}/setupvars.sh
129135
${OPENVINO_INSTALL_DIR}/tools/compile_tool/compile_tool -m ${MODELS_DIR}/resnet50-onnx/model.onnx -d NPU.4000 -log_level LOG_INFO -il NCHW -iml NCHW -ol NC -oml NC -c common_compilation_config.conf
130136
131-
- name: Compile mobilenet_v2_1.0_224
137+
- name: Compile mobilenet_v2_1.0_224 on MTL
138+
run: |
139+
source ${OPENVINO_INSTALL_DIR}/setupvars.sh
140+
${OPENVINO_INSTALL_DIR}/tools/compile_tool/compile_tool -m ${MODELS_DIR}/mobilenet_v2_1.0_224/onnx/model_fp16.onnx -d NPU.3720 -log_level LOG_INFO -il NCHW -iml NCHW -ol NC -oml NC -c common_compilation_config.conf
141+
${OPENVINO_INSTALL_DIR}/tools/compile_tool/compile_tool -m ${MODELS_DIR}/mobilenet_v2_1.0_224/onnx/model_int8.onnx -d NPU.3720 -log_level LOG_INFO -il NCHW -iml NCHW -ol NC -oml NC -c common_compilation_config.conf
142+
${OPENVINO_INSTALL_DIR}/tools/compile_tool/compile_tool -m ${MODELS_DIR}/mobilenet_v2_1.0_224/onnx/model_quantized.onnx -d NPU.3720 -log_level LOG_INFO -il NCHW -iml NCHW -ol NC -oml NC -c common_compilation_config.conf
143+
144+
- name: Compile mobilenet_v2_1.0_224 on LNL
132145
run: |
133146
source ${OPENVINO_INSTALL_DIR}/setupvars.sh
134147
${OPENVINO_INSTALL_DIR}/tools/compile_tool/compile_tool -m ${MODELS_DIR}/mobilenet_v2_1.0_224/onnx/model_fp16.onnx -d NPU.4000 -log_level LOG_INFO -il NCHW -iml NCHW -ol NC -oml NC -c common_compilation_config.conf
135148
${OPENVINO_INSTALL_DIR}/tools/compile_tool/compile_tool -m ${MODELS_DIR}/mobilenet_v2_1.0_224/onnx/model_int8.onnx -d NPU.4000 -log_level LOG_INFO -il NCHW -iml NCHW -ol NC -oml NC -c common_compilation_config.conf
136-
${OPENVINO_INSTALL_DIR}/tools/compile_tool/compile_tool -m ${MODELS_DIR}/mobilenet_v2_1.0_224/onnx/quantized.onnx -d NPU.4000 -log_level LOG_INFO -il NCHW -iml NCHW -ol NC -oml NC -c common_compilation_config.conf
149+
${OPENVINO_INSTALL_DIR}/tools/compile_tool/compile_tool -m ${MODELS_DIR}/mobilenet_v2_1.0_224/onnx/model_quantized.onnx -d NPU.4000 -log_level LOG_INFO -il NCHW -iml NCHW -ol NC -oml NC -c common_compilation_config.conf

0 commit comments

Comments
 (0)