Skip to content

meshtag/GraphMLIR

Repository files navigation

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

About

MLIR backend for optimising graph algorithms

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •