Skip to content

pku-liang/festal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

  1. Install LLVM/MLIR according to https://mlir.llvm.org/getting_started/ We use the commit 91088978d712cd7b33610c59f69d87d5a39e3113
git checkout 91088978d712cd7b33610c59f69d87d5a39e3113
  1. Clone the project git clone https://github.com/xuruifan/festal.git

  2. Configuration and build

mkdir build
cd build
cmake -G Ninja .. -DMLIR_DIR=/home/ruifan/llvm-project/build/lib/cmake/mlir -DLLVM_EXTERNAL_LIT=/home/ruifan/llvm-project/build/bin/llvm-lit -DCMAKE_BUILD_TYPE=Debug -DLLVM_DIR=/home/ruifan/llvm-project -DLLVM_SOURCE_DIR=/home/ruifan/llvm-project/llvm -DLLVM_BUILD_MAIN_SRC_DIR=/home/ruifan/llvm-project/llvm
ninja

Run examples

festal-opt --task-split --festal-dse=target=../config.json --axi-task 2mm.mlir -o 2mm_kernel.mlir
festal-opt 2mm_kernel.mlir --kernel-parallel --affine-loop-normalize --canonicalize --remove-access="mode=aggressive" --expression-balance | festal-translate --festal-emit-hlscpp > 2mm.cpp

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors