INSTALL 947 Bytes
Newer Older
Mathis Rosenhauer's avatar
Mathis Rosenhauer committed
1 2 3 4
============
Installation
============

5
The installation procedure uses CMake, as follows:
6 7 8

Unpack the tar archive and change into the unpacked directory.

9 10 11 12
  mkdir build
  cd build
  cmake ..  # CMAKE_INSTALL_PREFIX=~/.local
  make install
Mathis Rosenhauer's avatar
Mathis Rosenhauer committed
13

14 15 16 17 18 19 20 21 22 23
You can set options for compiling using the CMake GUI by replacing the cmake
command with

  cmake-gui ..

or by setting the options manually, e.g.

  cmake -DCMAKE_INSTALL_PREFIX=~/local ..

in order to set the install prefix to ~/local
Mathis Rosenhauer's avatar
Mathis Rosenhauer committed
24 25 26 27 28 29

=======================
Intel compiler settings
=======================

The Intel compiler can improve performance by vectorizing certain
30 31
parts of the code on x86 architectures. Assuming your CPU supports
AVX2, the following options will increase encoding speed.
Mathis Rosenhauer's avatar
Mathis Rosenhauer committed
32 33

  ./configure CC=icc
34
  make CFLAGS="-O3 -xCORE-AVX2" bench
Mathis Rosenhauer's avatar
Mathis Rosenhauer committed
35

36 37 38 39
On a 3.4 GHz E3-1240 v3 we see more than 400 MiB/s for encoding
typical data.

Using other SIMD instruction sets on older CPUs may also help.