https://github.com/meshtag/graphmlir
MLIR backend for optimising graph algorithms
https://github.com/meshtag/graphmlir
Last synced: 3 months ago
JSON representation
MLIR backend for optimising graph algorithms
- Host: GitHub
- URL: https://github.com/meshtag/graphmlir
- Owner: meshtag
- Created: 2022-03-02T14:44:27.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-03-30T20:28:05.000Z (about 2 years ago)
- Last Synced: 2025-04-10T01:14:46.071Z (about 1 year ago)
- Language: C++
- Size: 39.1 KB
- Stars: 16
- Watchers: 1
- Forks: 7
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GraphMLIR
An IR based solution for optimising graph algorithms.
## Clone repository and its dependencies
```
git clone https://github.com/meshtag/GraphMLIR.git
cd GraphMLIR
git submodule update --init
```
## Build LLVM
```
cd llvm && mkdir build && cd build
cmake -G Ninja ../llvm \
-DLLVM_ENABLE_PROJECTS="mlir" \
-DLLVM_TARGETS_TO_BUILD="host;X86" \
-DLLVM_ENABLE_ASSERTIONS=ON \
-DCMAKE_BUILD_TYPE=RELEASE
ninja
ninja check-mlir
```
## Build project
```
cd ../../ && mkdir build && cd build
cmake -G Ninja .. \
-DMLIR_DIR=$PWD/../llvm/build/lib/cmake/mlir \
-DLLVM_DIR=$PWD/../llvm/build/lib/cmake/llvm \
-DLLVM_ENABLE_ASSERTIONS=ON \
-DCMAKE_BUILD_TYPE=RELEASE \
-DGraphMLIR_EXAMPLES=ON
ninja bfsExample
cd bin && ./bfsExample
```