Installation
Binary distribution (recommended)#
The easiest way to install HyperQueue is to download and unpack the prebuilt hq
executable:
-
Download the latest release archive from this link.
Target architecture
Make sure to choose the correct binary for your architecture. Currently, we provide prebuilt binaries for
x86-64
andPowerPC
architectures. -
Unpack the downloaded archive:
$ tar -xvzf hq-<version>-linux-<architecture>.tar.gz
The archive contains a single binary
hq
, which is used both for deploying the HQ cluster and submitting tasks into HQ. You can addhq
to your system$PATH
to make its usage easier.
See Quickstart for an example "Hello world" HyperQueue computation.
Compilation from source code#
You can also compile HyperQueue from source. This allows you to build HyperQueue for architectures for which we do not provide prebuilt binaries. It can also generate binaries with support for vectorization, which could in theory improve the performance of HyperQueue in extreme cases.
- Setup a Rust toolchain
-
Clone the HyperQueue repository:
$ git clone https://github.com/It4innovations/hyperqueue/
-
Build HyperQueue:
$ RUSTFLAGS="-C target-cpu=native" cargo build --release
Jemalloc dependency
HyperQueue by default depends on the Jemalloc memory allocator, which is a C library. If you're having problems with installing HyperQueue because of this dependency, you can opt-out of it and use the default system allocator by building HQ with
--no-default-features
:$ cargo build --release --no-default-features
-
Use the executable located in
./target/release/hq
Created: November 2, 2021