This section provides quick instructions for a basic installation of tiramisu on macOS >= 11
-
Make sure the following prerequisites are installed:
- autoconf
- libtool
- cmake>=3.5
- gcc==7.5
Otherwise, you can install them via Homebrew:
brew install autoconf, libtool, cmake, gcc@7
-
Clone Tiramisu:
git clone https://github.com/Tiramisu-Compiler/tiramisu.git cd tiramisu
-
Apply the macOS 11 installation patch:
patch -p1 -i utils/scripts/macOS11_patch/installation_patch.patch
-
Export the following environment variables:
export MACOSX_DEPLOYMENT_TARGET=10.16.3 export CXX=g++-7 export CC=gcc-7 export TIRAMISU_ROOT=$(pwd)
-
Install Tiramisu and its submodules (ISL, LLVM, and Halide). This step may take some time to complete:
./utils/scripts/install_submodules.sh $TIRAMISU_ROOT mkdir build cd build cmake .. make -j tiramisu
For more details about the installation steps and the different building configurations, please refer to the main Installation Guide.