NiccoloN 661170a9aa reimplement pool lowering
add pool validation
align PIM ops/codegen/parser with the ISA
move constant materialization to MLIR
rename the PIM verification/materialization passes
better folded-constant handling
2026-03-23 19:14:50 +01:00
2026-03-23 14:30:02 +01:00
2026-03-23 19:14:50 +01:00
2026-02-24 15:09:18 +01:00
2026-03-23 19:14:50 +01:00
2026-02-26 19:16:42 +01:00
2026-02-23 16:17:52 +01:00
2026-03-23 16:39:14 +01:00

Raptor

Build

Protobuf

Use the following commands to install protobuf:

git clone --depth 1 --branch v34.0 https://github.com/protocolbuffers/protobuf
cd protobuf
mkdir build
cd build
cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release
ninja
sudo ninja install

You can now remove the protobuf repo directory with:

cd ../..
rm -rf protobuf

Mlir

Follow the first part of instructions here to build mlir.

Remember to set -DCMAKE_BUILD_TYPE=Debug for developing on Raptor

Moreover, if compiling with build type debug, it is also suggested to use mold as linker (you will need to install it if you don't have it already) to reduce memory usage during linking. You can use it by setting the options:

-DCMAKE_EXE_LINKER_FLAGS="-fuse-ld=mold" \
-DCMAKE_SHARED_LINKER_FLAGS="-fuse-ld=mold"

Raptor

Use the following commands to build Raptor.

Remember to set -DCMAKE_BUILD_TYPE=Debug for developing on Raptor.

Also in this case, it is suggested to use mold as linker to reduce link time and memory usage, setting the options:

-DCMAKE_EXE_LINKER_FLAGS="-fuse-ld=mold" \
-DCMAKE_SHARED_LINKER_FLAGS="-fuse-ld=mold"
git submodule update --init --recursive

MLIR_DIR=$(pwd)/onnx-mlir/llvm-project/build/lib/cmake/mlir
mkdir build && cd build
cmake .. -G Ninja \
  -DCMAKE_BUILD_TYPE=Release \
  -DONNX_MLIR_ACCELERATORS=PIM \
  -DLLVM_ENABLE_ASSERTIONS=ON \
  -DMLIR_DIR=${MLIR_DIR}
cmake --build .

If the build fails because of protobuf missing uint definitions, just patch the problematic files by adding #include <cstdint> to their includes.

Description
No description provided
Readme 9.7 MiB
Languages
C++ 50.8%
Rust 37.7%
Python 10.1%
CMake 1.4%