Using HPVM
Tests are provided, along with a template Makefile for user projects.
Parboil
Several tests from the parboil suite have been ported to HPVM.
To run one of these tests, navigate to its directory under parboil/benchmarks/
.
Tests may be built for the cpu or gpu with hpvm, and openCL versions are provided for comparison.
Check under the src/
directory in each benchmark to see which versions are available,
denoted by the names of the subdirectories.
# sgemm example
cd parboil/benchmarks/sgemm
# HPVM cpu
make TARGET=seq VERSION=visc
make run TARGET=seq VERSION=visc
# HPVM gpu
make TARGET=gpu VERSION=visc
make run TARGET=gpu VERSION=visc
# openCL
make VERSION=opencl_base
make run VERSION=opencl_base
Cava
TODO
Pipeline
make TARGET={seq, gpu}
./pipeline-{seq, gpu} datasets/big/input/formula1_scaled.mp4
Your own project
See template/
for an example Makefile and config.
Include visc.h
to use HPVM intrinsics, found in the test/include/visc.h
.