Skip to content

Commit 232ea6a

Browse files
committed
gpu nightly test
1 parent 37a70e6 commit 232ea6a

File tree

2 files changed

+66
-1
lines changed

2 files changed

+66
-1
lines changed
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
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

scripts/compile.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ build_llvm() {
114114
local llvm_dir="$EXTERNALS_DIR/llvm-project"
115115
LLVM_BUILD_DIR="$llvm_dir/build$BUILD_DIR_SFX"
116116
MLIR_DIR="$LLVM_BUILD_DIR/lib/cmake/mlir"
117-
mkdir -p "$LLVM_BUILD_DIR"
118117

119118
if ! [ -d "$llvm_dir" ]; then
120119
git clone https://github.com/llvm/llvm-project.git
@@ -126,6 +125,7 @@ build_llvm() {
126125
# build that would break 'git checkout ${LLVM_HASH}')
127126
git checkout -- .
128127
fi
128+
mkdir -p "$LLVM_BUILD_DIR"
129129

130130
git checkout ${LLVM_HASH}
131131
[ -z "$CLEANUP" ] || rm -rf "$LLVM_BUILD_DIR"

0 commit comments

Comments
 (0)