|
| 1 | +name: OpenVino GPU Nightly Test |
| 2 | + |
| 3 | +on: |
| 4 | + workflow_dispatch: |
| 5 | + push: |
| 6 | + |
| 7 | +permissions: read-all |
| 8 | + |
| 9 | +jobs: |
| 10 | + nightly: |
| 11 | + name: OpenVino GPU Nightly |
| 12 | + runs-on: [self-hosted, l0] |
| 13 | + |
| 14 | + env: |
| 15 | + GH_TOKEN: ${{ github.token }} |
| 16 | + |
| 17 | + steps: |
| 18 | + - name: "Checkout Graph Compiler" |
| 19 | + uses: actions/checkout@v4 |
| 20 | + with: |
| 21 | + repository: 'intel/graph-compiler' |
| 22 | + path: 'graph-compiler' |
| 23 | + |
| 24 | + - name: Setup MLIR Python bindings |
| 25 | + id: setup-mlir-python-bindings |
| 26 | + uses: ./graph-compiler/.github/actions/setup-mlir-python-bindings |
| 27 | + |
| 28 | + - name: Build LLVM with IMEX |
| 29 | + working-directory: graph-compiler |
| 30 | + run: | |
| 31 | + scripts/compile.sh --dev --llvm --imex |
| 32 | + echo LLVM_INST_PATH=$(pwd)/externals/llvm-project/build >>$GITHUB_ENV |
| 33 | +
|
| 34 | + - name: "Checkout OpenVino" |
| 35 | + uses: actions/checkout@v4 |
| 36 | + with: |
| 37 | + repository: 'dchigarev/openvino' |
| 38 | + ref: 'gc-gpu' |
| 39 | + path: 'openvino' |
| 40 | + submodules: true |
| 41 | + fetch-depth: 0 |
| 42 | + recursive: true |
| 43 | + |
| 44 | + - name: Build OpenVino |
| 45 | + working-directory: openvino |
| 46 | + run: | |
| 47 | + cmake -B build -G Ninja -DLLVM_DIR=${LLVM_INST_PATH}/lib/cmake/llvm -DMLIR_DIR=${LLVM_INST_PATH}/lib/cmake/mlir -DENABLE_GRAPH_COMPILER=ON -DENABLE_INTEL_GPU=ON -DENABLE_TESTS=ON |
| 48 | + cmake --build build --target all |
| 49 | + |
| 50 | + - name: Benchmark |
| 51 | + working-directory: openvino |
| 52 | + env: |
| 53 | + OV_MLIR_MODE: GC_GPU |
| 54 | + run: | |
| 55 | + ./bin/intel64/Release/benchmark_app -m ./src/plugins/intel_gpu/tests/functional/mlir_op/models/matmul_64_128_f16.xml -d GPU -use_device_mem -ip f16 -infer_precision f16 -niter 100 -hint none -nstreams 1 -nthreads 1 >tmp |
| 56 | + cat tmp |
| 57 | + COMPILE_TIME=$(grep "Compile model took" tmp|tr -cd '0-9.') |
| 58 | + FIRST_INFERENCE_TIME=$(grep "First inference took" tmp|tr -cd '0-9.') |
| 59 | + THROUGHPUT=$(grep "Throughput" tmp|tr -cd '0-9.') |
| 60 | + echo "openvino,matmul_64_128_f16.xml,$COMPILE_TIME,$FIRST_INFERENCE_TIME,$THROUGHPUT" >> perf.csv |
| 61 | + - name: Upload Performance Artifact |
| 62 | + uses: actions/upload-artifact@v4 |
| 63 | + with: |
| 64 | + name: perf.csv |
| 65 | + path: openvino/perf.csv |
0 commit comments