mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-09 12:15:09 -05:00
The code in `loadEndToEndDesc` attempts to load the contents of a YAML file without ensuring that the stream from which the file is read was set up correctly. As a result, streams in a bad state, e.g., if the file to be opened does not exist, simply result in an empty string for the file contents. The test driver cannot distinguish this result from a valid YAML file that is simply empty. This patch causes `loadEndToEndDesc` to abort execution whenever a file input stream could not be set up correctly.
Building the compiler
Install MLIR following https://mlir.llvm.org/getting_started/ Use commit c2415d67a564
Install pybind11:
pip install pybind11
Build concrete library:
git clone https://github.com/zama-ai/concrete_internal
cd concrete_internal
git checkout engine_c_api
cd concrete-ffi
RUSTFLAGS="-C target-cpu=native" cargo build --release
Generate the compiler build system, in the build directory
export LLVM_PROJECT="PATH_TO_LLVM_PROJECT"
export CONCRETE_PROJECT="PATH_TO_CONCRETE_INTERNAL_PROJECT"
make build-initialized
Build the compiler
make concretecompiler
Test the compiler
#TODO: let cmake set this PATH
export LD_LIBRARY_PATH="path_to_concrete-compiler/compiler/build/lib/Runtime/"
make test
Run the compiler
./build/src/concretecompiler