Skip to content

Getting started on Ubuntu 22.04 LTS

Alex Reinking edited this page Apr 25, 2022 · 1 revision

As of Ubuntu 22.04 LTS, Halide 13 is available as an upstream system package!

From a fresh installation, you can run the following to build the apps/ directory against this version:

$ sudo apt install build-essential g++ cmake ninja-build git libhalide13-0-dev libpng-dev libjpeg-turbo8-dev libopenblas-dev
$ git clone --branch release/13.x https://github.com/halide/Halide.git
$ cd Halide/apps
$ cmake -G Ninja -S . -B build -DCMAKE_BUILD_TYPE=Release -DENABLE_APPS_HANNK=OFF
$ cmake --build build
$ ctest --test-dir build -LE slow

Removing -LE slow from the last command will run the BLAS benchmarks, which are very many and take a long time to run.