-
Notifications
You must be signed in to change notification settings - Fork 336
/
Copy pathconfig.yml
78 lines (77 loc) · 2.79 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
version: 2
jobs:
build:
docker:
- image: circleci/python
resource_class: medium+
steps:
- run:
name: Installing GCC, CMake, Ninja, Protobuf
command: sudo apt-get update && sudo apt-get install -y gcc g++ cmake ninja-build protobuf-compiler && pip install --upgrade -q cython
- checkout:
path: onnx-mlir
- run:
name: Pull Submodules
command: |
cd onnx-mlir
git submodule update --init --recursive
# Use cached mlir installation if possible.
- restore_cache:
key: V28-LLVM-PROJECT-{{ arch }}
- run:
name: Install MLIR
command: |
# Check whether cache restoration succeeds by checking whether
# mlir-opt executable exists.
if [ ! -f llvm-project/build/bin/mlir-opt ]; then
export MAKEFLAGS=-j4
source onnx-mlir/utils/install-mlir.sh
fi
- save_cache:
key: V28-LLVM-PROJECT-{{ arch }}
paths:
- llvm-project
- run:
name: Install ONNX-MLIR
command: source onnx-mlir/utils/install-onnx-mlir.sh
- run:
name: Run End-To-End Tests
command: |
sudo pip install -q -e ./onnx-mlir/third_party/onnx
cd onnx-mlir/build
RUNTIME_DIR=$(pwd)/lib cmake --build . --target check-onnx-backend
- run:
name: Run End-To-End Tests With Dynamic Shape
command: |
sudo pip install -q -e ./onnx-mlir/third_party/onnx
cd onnx-mlir/build
RUNTIME_DIR=$(pwd)/lib cmake --build . --target check-onnx-backend-dynamic
- run:
name: Run End-To-End Tests With Compiler Lib
command: |
sudo pip install -q -e ./onnx-mlir/third_party/onnx
cd onnx-mlir/build
RUNTIME_DIR=$(pwd)/lib cmake --build . --target check-compilerlib-backend
- run:
name: Run Document Checks
command: |
sudo pip install -q -e ./onnx-mlir/third_party/onnx
cd onnx-mlir/build
RUNTIME_DIR=$(pwd)/lib cmake --build . --target check-docs
- run:
name: Run Unit Tests
command: |
cd onnx-mlir/build
# Need to include the bin directory in $PATH,
# otherwise CTest fails to find the test executables.
RUNTIME_DIR=$(pwd)/lib make test -j$(nproc)
- run:
name: Ensure tablegen documentation is up-to-date
command: |
cd onnx-mlir/build
cmake --build . --target onnx-mlir-docs
# Check whether dialect documentation is up-to-date.
# diff docs/Dialects ../docs/Dialects
- run:
name: Print the Current Time
command: date