Skip to content
Snippets Groups Projects
Name Last commit Last update
..
hpvm-c
keras
pytorch
README.md

Build DNN benchmarks

Move to your HPVM build directory

cd hpvm/hpvm/build

Build All Benchmarks

make dnn_benchmarks -j ${NUM_THREADS}

Build a Specific CNN

make ${BENCH} -j ${NUM_THREADS}

The ${BENCH} name should match the directory name of the respective benchmark under hpvm-c directory

Run Benchmarks

The benchmarks are built under: /hpvm/hpvm/build/tools/hpvm/test/dnn_benchmarks/hpvm-c

Before running benchmarks set up CUDA/CuDNN paths using hpvm/hpvm/set_paths.sh

Modify the setup script to point to your local installations.

The accuracy of the benchmark (averaged across batches) is dumped to a file named final_accuracy

Ensure that this matches the accuracy of corresponding benchmarks here: https://gitlab.engr.illinois.edu/llvm/hpvm/-/tree/approx_hpvm_reorg/hpvm/projects/keras