You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,11 @@
1
1
<!--- (c) Copyright 2021 Xilinx, Inc. All Rights reserved.--->
2
2
<!--- (c) Copyright 2022 - 2024 Advanced Micro Devices, Inc. All Rights reserved.--->
3
3
4
-
# Extensions to Torch-MLIR
4
+
# Extensions to MLIR
5
5
6
6

7
7
8
-
This repository contains Xilinx extensions to the torch-mlir ATen dialect to enable expressing the input and output of partial results. Using these extensions, a prototype streaming dataflow exploration tool scans the design space for compute/memory/computation balanced partitioning of CNNs on the AIE array of Xilinx' Versal devices.
8
+
This repository contains Xilinx extensions to the ONNX-MLIR and TOSA dialect to enable expressing the input and output of partial results. Using these extensions, a prototype streaming dataflow exploration tool scans the design space for compute/memory/computation balanced partitioning of CNNs on the AIE array of Xilinx' Versal devices.
Copy file name to clipboardExpand all lines: docs/Building.md
+2-15Lines changed: 2 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,21 +9,10 @@
9
9
cmake 3.20.6 or higher
10
10
ninja 1.8.2
11
11
clang/llvm 14+ from source https://github.com/llvm/llvm-project
12
-
llvm/torch-mlir from https://github.com/llvm/torch-mlir
13
12
```
14
13
15
14
## Building on X86
16
15
17
-
NOTE: this initial version of mlir-xten currently fails to build against head torch-mlir. Fixes in progress.
18
-
19
-
### Compile torch-mlir
20
-
21
-
Clone torch-mlir from https://github.com/llvm/torch-mlir and follow the build instructions. This process builds torch-mlir integrated with LLVM/MLIR. We recommend adding the additional CMake flags: `-DLLVM_BUILD_LLVM_DYLIB=ON -DLLVM_LINK_LLVM_DYLIB=ON` to build and link with libLLVM.so.
22
-
23
-
```sh
24
-
cmake --build build
25
-
```
26
-
27
16
### Compile mlir-xten
28
17
29
18
```sh
@@ -32,10 +21,8 @@ mkdir build; cd build
32
21
cmake ..\
33
22
-DCMAKE_C_COMPILER=clang \
34
23
-DCMAKE_CXX_COMPILER=clang++ \
35
-
-DLLVM_DIR=${absolute path to torchMlirBuild}/cmake/llvm \
36
-
-DMLIR_DIR=${absolute path to torchMlirBuild}/cmake/mlir \
37
-
-DTORCH_MLIR_SOURCE_DIR=${absolute path to torchMlirSource} \
38
-
-DTORCH_MLIR_BINARY_DIR=${absolute path to torchMlirBuild}
24
+
-DLLVM_DIR=${absolute path to llvm build}/cmake/llvm \
25
+
-DMLIR_DIR=${absolute path to mlir build}/cmake/mlir
0 commit comments