Skip to content

Commit 63a873c

Browse files
committed
gpu nightly test
1 parent 37a70e6 commit 63a873c

File tree

2 files changed

+54
-1
lines changed

2 files changed

+54
-1
lines changed
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
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+
bash -x 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+
41+
- name: Build OpenVino
42+
working-directory: openvino
43+
run: |
44+
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
45+
cmake --build build --target all
46+
47+
- name: Benchmark
48+
working-directory: openvino/build
49+
env:
50+
OV_MLIR_MODE: GC_GPU
51+
run: ./bin/intel64/Debug/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
52+
53+

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)