Skip to content

Commit 7dbd063

Browse files
committed
Test failures
1 parent c64890a commit 7dbd063

File tree

4 files changed

+104
-8
lines changed

4 files changed

+104
-8
lines changed
Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
name: "Windows precommit"
2+
3+
permissions:
4+
contents: read
5+
6+
on:
7+
push:
8+
branches: [ "npu/release/18.x" ]
9+
pull_request:
10+
branches: [ "npu/release/18.x" ]
11+
workflow_dispatch:
12+
branches: [ "npu/release/18.x" ]
13+
14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.ref }}
16+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
17+
18+
19+
jobs:
20+
Build:
21+
name: Build and Test
22+
runs-on: windows-latest
23+
defaults:
24+
run:
25+
shell: bash
26+
env:
27+
CMAKE_BUILD_TYPE: 'Release'
28+
LLVM_ENABLE_ASSERTIONS: 'ON'
29+
NPU_PLUGIN_LLVM_PROJECT: llvm
30+
NPU_PLUGIN_LLVM_PROJECT_BUILD_DIR: llvm/build
31+
NPU_PLUGIN_LLVM_PROJECT_INSTALL_DIR: llvm/install
32+
steps:
33+
- name: Clone NPU Plugin LLVM sources
34+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
35+
with:
36+
submodules: 'true'
37+
38+
- name: Install build dependencies
39+
run: |
40+
Invoke-WebRequest https://github.com/ninja-build/ninja/releases/download/v1.11.1/ninja-win.zip -OutFile ninja-win.zip -MaximumRetryCount 10
41+
Expand-Archive -Force ninja-win.zip
42+
Add-Content -Path $env:GITHUB_PATH -Value "${{ github.workspace }}/ninja-win"
43+
44+
- name: Configure Developer Command Prompt for Microsoft Visual C++ (2019)
45+
uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0
46+
with:
47+
toolset: 14.29
48+
49+
- name: Configure CMake
50+
run: |
51+
cmake \
52+
-G "Ninja Multi-Config" \
53+
-B ${NPU_PLUGIN_LLVM_PROJECT_BUILD_DIR} \
54+
-S ${NPU_PLUGIN_LLVM_PROJECT} \
55+
-DCMAKE_INSTALL_PREFIX=${NPU_PLUGIN_LLVM_PROJECT_INSTALL_DIR} \
56+
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} \
57+
-DLLVM_ENABLE_WARNINGS=OFF \
58+
-DLLVM_ENABLE_BINDINGS=OFF \
59+
-DLLVM_ENABLE_RTTI=ON \
60+
-DLLVM_ENABLE_EH=ON \
61+
-DLLVM_ENABLE_BACKTRACES=OFF \
62+
-DLLVM_ENABLE_CRASH_OVERRIDES=OFF \
63+
-DLLVM_ENABLE_PROJECTS="mlir" \
64+
-DLLVM_ENABLE_ASSERTIONS=${LLVM_ENABLE_ASSERTIONS} \
65+
-DLLVM_INCLUDE_TESTS=ON \
66+
-DLLVM_INCLUDE_BENCHMARKS=OFF \
67+
-DLLVM_TARGETS_TO_BUILD="host" \
68+
-DLLVM_ENABLE_TERMINFO=OFF \
69+
-DLLVM_BUILD_EXAMPLES=OFF \
70+
-DLLVM_INCLUDE_EXAMPLES=OFF \
71+
-DLLVM_BUILD_TOOLS=OFF \
72+
-DLLVM_BUILD_UTILS=ON \
73+
-DLLVM_INSTALL_UTILS=ON \
74+
75+
- name: Build
76+
run: |
77+
cmake \
78+
--build ${NPU_PLUGIN_LLVM_PROJECT_BUILD_DIR} \
79+
--config ${CMAKE_BUILD_TYPE} \
80+
--parallel $(nproc)
81+
82+
- name: Test LLVM
83+
run: |
84+
cmake \
85+
--build ${NPU_PLUGIN_LLVM_PROJECT_BUILD_DIR} \
86+
--config ${CMAKE_BUILD_TYPE} \
87+
--parallel $(nproc) \
88+
--target check-llvm
89+
90+
- name: Test MLIR
91+
run: |
92+
cmake \
93+
--build ${NPU_PLUGIN_LLVM_PROJECT_BUILD_DIR} \
94+
--config ${CMAKE_BUILD_TYPE} \
95+
--parallel $(nproc) \
96+
--target check-mlir

mlir/test/Dialect/Quant/parse-any-invalid.mlir

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717

1818
// -----
1919
// Unrecognized storage type: illegal prefix
20-
// expected-error@+1 {{illegal quantized storage type alias}}
20+
// expected-error@+1 {{Blah}}
2121
!qalias = !quant.any<int8<-4:3>:f32>
2222

2323
// -----
2424
// Unrecognized storage type: no width
25-
// expected-error@+1 {{illegal quantized storage type alias}}
25+
// expected-error@+1 {{Blah}}
2626
!qalias = !quant.any<i<-4:3>:f32>
2727

2828
// -----

mlir/test/Dialect/Quant/parse-quantile-invalid.mlir

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,12 @@ func.func @parse() -> !qalias {
6363

6464
// -----
6565
// Unrecognized storage type: illegal prefix
66-
// expected-error@+1 {{illegal quantized storage type alias}}
66+
// expected-error@+1 {{Hello world}}
6767
!qalias = !quant.quantile<int8<-4:3>:f16:f32, {-1.0,1.0}:0.99872:127>
6868

6969
// -----
7070
// Unrecognized storage type: no width
71-
// expected-error@+1 {{illegal quantized storage type alias}}
71+
// expected-error@+1 {{Hello world}}
7272
!qalias = !quant.quantile<i<-4:3>:f16:f32, {-1.0,1.0}:0.99872:127>
7373

7474
// -----
@@ -78,7 +78,7 @@ func.func @parse() -> !qalias {
7878

7979
// -----
8080
// Unrecognized storage type: storage size < 0
81-
// expected-error@+1 {{illegal quantized storage type alias}}
81+
// expected-error@+1 {{Hello world}}
8282
!qalias = !quant.quantile<i-1<-4:3>:f16:f32, {-1.0,1.0}:0.99872:127>
8383

8484
// -----

mlir/test/Dialect/Quant/parse-uniform-invalid.mlir

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@
3737

3838
// -----
3939
// Unrecognized storage type: illegal prefix
40-
// expected-error@+1 {{illegal quantized storage type alias}}
40+
// expected-error@+1 {{Fus}}
4141
!qalias = !quant.uniform<int8<-4:3>:f32, 0.99872:127>
4242

4343
// -----
4444
// Unrecognized storage type: no width
45-
// expected-error@+1 {{illegal quantized storage type alias}}
45+
// expected-error@+1 {{Ro}}
4646
!qalias = !quant.uniform<i<-4:3>:f32, 0.99872:127>
4747

4848
// -----
@@ -52,7 +52,7 @@
5252

5353
// -----
5454
// Unrecognized storage type: storage size < 0
55-
// expected-error@+1 {{illegal quantized storage type alias}}
55+
// expected-error@+1 {{Dah}}
5656
!qalias = !quant.uniform<i-1<-4:3>:f32, 0.99872:127>
5757

5858
// -----

0 commit comments

Comments
 (0)