DEEP SCRATCH

色即是空

Build Halide on Mac OSX

Precompile version:

> git clone https://github.com/halide/Halide.git
> cd Halide
> curl -L -O http://llvm.org/releases/3.7.0/clang+llvm-3.7.0-x86_64-apple-darwin.tar.xz
> tar zxf clang+llvm-3.7.0-x86_64-apple-darwin.tar.xz
> export LLVM_CONFIG=(your path)/Halide/llvm/bin/llvm-config 
> export CLANG=(your path)/Halide/llvm/bin/clang
> make

build from source by cmake version

mkdir cmake_build
cd cmake_build
cmake -DLLVM_DIR=/path-to-llvm-build/lib/cmake/llvm -DCMAKE_BUILD_TYPE=Release /path/to/halide
make -j8
  • in my case
mkdir cmake_build
cd cmake_build
cmake -DLLVM_DIR=/Users/itoyuichi/github/Halide/Halide/llvm/lib/cmake/llvm -DCMAKE_BUILD_TYPE=Release /Users/itoyuichi/github/Halide/Halide
make -j8

My environment : Mac OS sierra, 10.12.6