“Dwarf bench” is a collection of patterns that attempt to capture performance characteristics of analytical queries. The idea is to extend the taxonomy of computational patterns defined in the article “The Landscape of Parallel Computing Research” published in 2006 to data analytics in heterogeneous environments. Implementing basic structures and algorithms once for multiple devices strives to find a balance between performance and specific capabilities usage, and implementation effort. We chose platform-agnostic tools to express our language of patterns (OpenCL, SYCL).
- Requirements (see below): boost1.61, oclhelpers, opencl 1.2 (tested with nvidia 11.3, intel gfx & intel opencl cpu runtimes)
- Get latest release of opencl helpers from https://github.com/kurapov-peter/oclhelpers/releases
- Put the lib into your CMAKE_PREFIX_PATH or set oclhelpers_DIR env var
- Install CUDA
- Install CPU runtime (You'll only need the runtime:
sudo apt install intel-oneapi-runtime-opencl
) - Install Intel gfx drivers
- In order to run dpcpp tests with cpu, gpu and cuda follow these steps:
- Build dpcpp compiler with cuda support
- Install onedpl (i.e. along with the basekit)
- mkdir build && cd build && CXX=clang++ oclhelpers_DIR=/path/to/helpers cmake -DENABLE_DPCPP=ON .. && make -j
nproc
- docker build . --network host -t dwarfs-dev
- docker run --network host --privileged -it --name spicy -v /path/to/dwarf_bench:/dwarf_bench dwarfs-dev:latest bash
- mkdir build && cd build
- CXX=dpcpp cmake /dwarf_bench/ -DENABLE_DPCPP=on -DENABLE_TESTS=on
- cmake --build . --parallel 4
- cd tests && ctest