Files
concrete/compiler/README.md
youben11 2009ee1c94 chore: changing ref to repo after its renaming
also formatting and update the check_license script to match that
2022-01-06 12:40:10 +01:00

49 lines
811 B
Markdown

# Building the compiler
Install MLIR following https://mlir.llvm.org/getting_started/
Use commit c2415d67a564
Install pybind11:
```sh
pip install pybind11
```
Build concrete library:
```sh
git clone https://github.com/zama-ai/concrete
cd concrete
git checkout feature/core_c_api
cd concrete-ffi
RUSTFLAGS="-C target-cpu=native" cargo build --release
```
Generate the compiler build system, in the `build` directory
```sh
export LLVM_PROJECT="PATH_TO_LLVM_PROJECT"
export CONCRETE_PROJECT="PATH_TO_CONCRETE_PROJECT"
make build-initialized
```
Build the compiler
```sh
make concretecompiler
```
Test the compiler
```sh
#TODO: let cmake set this PATH
export LD_LIBRARY_PATH="path_to_concrete-compiler/compiler/build/lib/Runtime/"
make test
```
Run the compiler
```sh
./build/src/concretecompiler
```