Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

Latest commit

 

History

History
71 lines (44 loc) · 3.11 KB

BuildAndTest.md

File metadata and controls

71 lines (44 loc) · 3.11 KB

Building and Running

With Docker

If you want to only run the benchmarks, instead of installing all the prerequisites, you can just install docker.

To run benchmarks in a docker container, follow the guide here.

Without Docker

Prerequisites

Binaries for the above must be available on PATH.

All the dependencies not mentioned here will be fetched automatically during CMake configuration and building.

Build and Test

With Visual Studio 2017/2019 (Windows only)

Make sure, your Visual Studio installation includes CMake tools for Visual Studio. If that is not the case, you can install it as a component in the Visual Studio Installer.

Now, just open the folder with the cloned repository in Visual Studio. CMake should run automatically. The repository already contains a sensible CMakeSettings.json file, so you should be able to choose between debug and release configurations.

When Visual Studio will finish building CMake cache, you should be able to build ADBench with Visual Studio's "Build All" command.

After the build was succeeded, unit tests should become available in the test explorer as usual.

With Visual Studio Code (Windows and Linux)

Open the folder with the cloned repository in Visual Studio Code. The repository contains a .vscode/extensions.json file with a list of recommended extensions, so VS Code should prompt you to install them. Agree.

When you open the folder repository in VS Code with all the recommended extensions, it should automatically prompt you to perform CMake configuration, after which buttons for selecting build configuration, building all targets, and running unit tests should appear on the VS Code's bottom bar.

Python Environments

The build scripts will install dependencies using pip. We recommend using a virtual environment tool such as venv to create a separate environment before running the scripts.

From Command Line (Windows and Linux)

To build in my-build subfolder of the folder with the cloned repository:

cd [directory with the cloned repository]
mkdir my-build
cd my-build
cmake -DCMAKE_BUILD_TYPE=<Debug|RelWithDebInfo|Release> ..
cmake --build .

To build in another folder modify accordingly.

To run unit tests just execute ctest in the folder with binaries.

Run

You can run the benchmarks with the ADBench/run-all.ps1 PowerShell script. See GlobalRunner.md for details.