Building and Testing Sarek

Sarek is not yet published to the opam repository: build it from a clone of the repository, for use in your own project or for development.

Prerequisites

Compilation & Installation

1. Install Dependencies

git clone https://github.com/mathiasbourgoin/Sarek.git
cd Sarek
opam install . --deps-only --working-dir

2. Build and Install

dune build
dune install

Running Tests

Unit Tests

Execute the full test suite using dune:

dune test

Benchmarks

Run the automated benchmark suite to verify performance across available backends:

# Run the full suite on all available devices
make benchmarks

API Documentation

You can generate the latest API documentation locally:

dune build @doc

The documentation will be available in _build/default/_doc/_html/.