The PGM-index C++ library is header-only. It does not need to be installed. Just clone the repo with
git clone https://github.com/gvinciguerra/PGM-index.git
cd PGM-index
and copy the include/pgm
directory to your system’s or project’s include path.
Instead, to build the tests, the tuner, and the benchmark, run
cmake . -DCMAKE_BUILD_TYPE=Release
make -j8
The test runner will be placed in test/
. The tuner executable will be placed in tuner/
. The benchmark executable will be placed in benchmark/
.
PyGM is compatible with Python 3.3+. The easiest way to install it is through PyPI
pip install pygm
Otherwise, you can clone the repo, build it from source and install it as follows:
if [[ "$(uname)" == "Darwin" ]]; then brew install libomp; fi
git clone https://github.com/gvinciguerra/PyGM.git
cd PyGM
git submodule update --init --recursive
pip install .
Remember to leave the source directory PyGM/ and its parent before running Python.