An open API service indexing awesome lists of open source software.

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

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
```