xpu
xpu::kernel_timings Class Reference

Execution times collected for a kernel. More...

Public Member Functions

std::string_view name () const
 
double total () const
 
const std::vector< double > & times () const
 
double throughput () const
 
 kernel_timings (detail::kernel_timings t)
 

Detailed Description

Execution times collected for a kernel.

Constructor & Destructor Documentation

◆ kernel_timings()

xpu::kernel_timings::kernel_timings ( detail::kernel_timings  t)
inlineexplicit

Member Function Documentation

◆ name()

std::string_view xpu::kernel_timings::name ( ) const
inline

Name of the associated kernel.

◆ throughput()

double xpu::kernel_timings::throughput ( ) const

Throughput of this kernel in gigabytes per second. Input size in bytes is set via k_add_bytes .

◆ times()

const std::vector<double>& xpu::kernel_timings::times ( ) const
inline

Times of each invocation of this kernel.

◆ total()

double xpu::kernel_timings::total ( ) const
inline

Total time spent in this kernel. [ms]


The documentation for this class was generated from the following file: