alpaka
Abstraction Library for Parallel Kernel Acceleration
alpaka::test::integ Namespace Reference

Functions

template<typename TCallable >
auto measureRunTimeMs (TCallable &&callable) -> std::chrono::milliseconds::rep
 Measures and returns the runtime in ms of the passed callable. More...
 
template<typename TQueue , typename TTask >
auto measureTaskRunTimeMs (TQueue &queue, TTask &&task) -> std::chrono::milliseconds::rep
 

Function Documentation

◆ measureRunTimeMs()

template<typename TCallable >
auto alpaka::test::integ::measureRunTimeMs ( TCallable &&  callable) -> std::chrono::milliseconds::rep

Measures and returns the runtime in ms of the passed callable.

Parameters
callableAn object with operator().

Definition at line 18 of file MeasureKernelRunTime.hpp.

◆ measureTaskRunTimeMs()

template<typename TQueue , typename TTask >
auto alpaka::test::integ::measureTaskRunTimeMs ( TQueue &  queue,
TTask &&  task 
) -> std::chrono::milliseconds::rep
Returns
The run time of the given kernel.

Definition at line 28 of file MeasureKernelRunTime.hpp.