HariAbram / sycl-microbench

SYCL micro-benchmarks repository

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sycl-microbench

This is a micro-benchmark for testing the overhead of SYCL features, the following features are tested in this benchmark

  • memory allocation
  • parallelization
  • atomics
  • barriers

Building

CMake is used to build this benchmark.

mkdir build && cd build
cmake .. -DSYCL_COMPILE= DPCPP|HIPSYCL -DOMP_COMPILE=true|false
make

if HIPSYCL is chosen as a SYCL implementation then -DHIPSYCL_INSTALL_DIR need to be specified.

For optimal performance OMP_PROC_BIND is set to true.

Example

./binary 
   -s <problem size>
   -b <block size (optional)>

About

SYCL micro-benchmarks repository


Languages

Language:C++ 89.1%Language:CMake 10.9%