Public Member Functions | Private Member Functions | Private Attributes | List of all members
BenchmarkSuite< Device, T > Class Template Reference

#include <tensor_benchmarks.h>

Public Member Functions

void algebraicFunc (int num_iters)
 
 BenchmarkSuite (const Device &device, size_t m, size_t k, size_t n)
 
 BenchmarkSuite (const Device &device, size_t m)
 
 BenchmarkSuite (const Device &device, size_t m, size_t k)
 
void broadcasting (int num_iters)
 
void coeffWiseOp (int num_iters)
 
void colChip (int num_iters)
 
void colReduction (int num_iters)
 
void contraction (int num_iters)
 
void contractionRowMajor (int num_iters)
 
void contractionRowMajorABT (int num_iters)
 
void contractionRowMajorAT (int num_iters)
 
void contractionRowMajorBT (int num_iters)
 
void convolution (int num_iters, int kernel_x, int kernel_y)
 
void fullReduction (int num_iters)
 
void memcpy (int num_iters)
 
void padding (int num_iters)
 
void random (int num_iters)
 
void rowChip (int num_iters)
 
void rowReduction (int num_iters)
 
void shuffling (int num_iters)
 
void slicing (int num_iters)
 
void striding (int num_iters)
 
void transcendentalFunc (int num_iters)
 
void typeCasting (int num_iters)
 
 ~BenchmarkSuite ()
 

Private Member Functions

template<int Layout>
void contraction (int num_iters, bool trans_a, bool trans_b)
 
void finalizeBenchmark (int64_t num_items)
 
void initialize ()
 

Private Attributes

Ta_
 
Tb_
 
Tc_
 
Device device_
 
TensorIndex k_
 
TensorIndex m_
 
TensorIndex n_
 

Detailed Description

template<typename Device, typename T>
class BenchmarkSuite< Device, T >

Definition at line 18 of file tensor_benchmarks.h.

Constructor & Destructor Documentation

◆ BenchmarkSuite() [1/3]

template<typename Device , typename T >
BenchmarkSuite< Device, T >::BenchmarkSuite ( const Device &  device,
size_t  m,
size_t  k,
size_t  n 
)
inline

Definition at line 20 of file tensor_benchmarks.h.

◆ BenchmarkSuite() [2/3]

template<typename Device , typename T >
BenchmarkSuite< Device, T >::BenchmarkSuite ( const Device &  device,
size_t  m 
)
inline

Definition at line 25 of file tensor_benchmarks.h.

◆ BenchmarkSuite() [3/3]

template<typename Device , typename T >
BenchmarkSuite< Device, T >::BenchmarkSuite ( const Device &  device,
size_t  m,
size_t  k 
)
inline

Definition at line 30 of file tensor_benchmarks.h.

◆ ~BenchmarkSuite()

template<typename Device , typename T >
BenchmarkSuite< Device, T >::~BenchmarkSuite ( )
inline

Definition at line 35 of file tensor_benchmarks.h.

Member Function Documentation

◆ algebraicFunc()

template<typename Device , typename T >
void BenchmarkSuite< Device, T >::algebraicFunc ( int  num_iters)
inline

Definition at line 334 of file tensor_benchmarks.h.

◆ broadcasting()

template<typename Device , typename T >
void BenchmarkSuite< Device, T >::broadcasting ( int  num_iters)
inline

Definition at line 278 of file tensor_benchmarks.h.

◆ coeffWiseOp()

template<typename Device , typename T >
void BenchmarkSuite< Device, T >::coeffWiseOp ( int  num_iters)
inline

Definition at line 312 of file tensor_benchmarks.h.

◆ colChip()

template<typename Device , typename T >
void BenchmarkSuite< Device, T >::colChip ( int  num_iters)
inline

Definition at line 163 of file tensor_benchmarks.h.

◆ colReduction()

template<typename Device , typename T >
void BenchmarkSuite< Device, T >::colReduction ( int  num_iters)
inline

Definition at line 412 of file tensor_benchmarks.h.

◆ contraction() [1/2]

template<typename Device , typename T >
void BenchmarkSuite< Device, T >::contraction ( int  num_iters)
inline

Definition at line 472 of file tensor_benchmarks.h.

◆ contraction() [2/2]

template<typename Device , typename T >
template<int Layout>
void BenchmarkSuite< Device, T >::contraction ( int  num_iters,
bool  trans_a,
bool  trans_b 
)
inlineprivate

Definition at line 526 of file tensor_benchmarks.h.

◆ contractionRowMajor()

template<typename Device , typename T >
void BenchmarkSuite< Device, T >::contractionRowMajor ( int  num_iters)
inline

Definition at line 476 of file tensor_benchmarks.h.

◆ contractionRowMajorABT()

template<typename Device , typename T >
void BenchmarkSuite< Device, T >::contractionRowMajorABT ( int  num_iters)
inline

Definition at line 488 of file tensor_benchmarks.h.

◆ contractionRowMajorAT()

template<typename Device , typename T >
void BenchmarkSuite< Device, T >::contractionRowMajorAT ( int  num_iters)
inline

Definition at line 480 of file tensor_benchmarks.h.

◆ contractionRowMajorBT()

template<typename Device , typename T >
void BenchmarkSuite< Device, T >::contractionRowMajorBT ( int  num_iters)
inline

Definition at line 484 of file tensor_benchmarks.h.

◆ convolution()

template<typename Device , typename T >
void BenchmarkSuite< Device, T >::convolution ( int  num_iters,
int  kernel_x,
int  kernel_y 
)
inline

Definition at line 492 of file tensor_benchmarks.h.

◆ finalizeBenchmark()

template<typename Device , typename T >
void BenchmarkSuite< Device, T >::finalizeBenchmark ( int64_t  num_items)
inlineprivate

Definition at line 573 of file tensor_benchmarks.h.

◆ fullReduction()

template<typename Device , typename T >
void BenchmarkSuite< Device, T >::fullReduction ( int  num_iters)
inline

Definition at line 446 of file tensor_benchmarks.h.

◆ initialize()

template<typename Device , typename T >
void BenchmarkSuite< Device, T >::initialize ( void  )
inlineprivate

Definition at line 560 of file tensor_benchmarks.h.

◆ memcpy()

template<typename Device , typename T >
void BenchmarkSuite< Device, T >::memcpy ( int  num_iters)
inline

Definition at line 41 of file tensor_benchmarks.h.

◆ padding()

template<typename Device , typename T >
void BenchmarkSuite< Device, T >::padding ( int  num_iters)
inline

Definition at line 211 of file tensor_benchmarks.h.

◆ random()

template<typename Device , typename T >
void BenchmarkSuite< Device, T >::random ( int  num_iters)
inline

Definition at line 81 of file tensor_benchmarks.h.

◆ rowChip()

template<typename Device , typename T >
void BenchmarkSuite< Device, T >::rowChip ( int  num_iters)
inline

Definition at line 142 of file tensor_benchmarks.h.

◆ rowReduction()

template<typename Device , typename T >
void BenchmarkSuite< Device, T >::rowReduction ( int  num_iters)
inline

Definition at line 380 of file tensor_benchmarks.h.

◆ shuffling()

template<typename Device , typename T >
void BenchmarkSuite< Device, T >::shuffling ( int  num_iters)
inline

Definition at line 184 of file tensor_benchmarks.h.

◆ slicing()

template<typename Device , typename T >
void BenchmarkSuite< Device, T >::slicing ( int  num_iters)
inline

Definition at line 100 of file tensor_benchmarks.h.

◆ striding()

template<typename Device , typename T >
void BenchmarkSuite< Device, T >::striding ( int  num_iters)
inline

Definition at line 243 of file tensor_benchmarks.h.

◆ transcendentalFunc()

template<typename Device , typename T >
void BenchmarkSuite< Device, T >::transcendentalFunc ( int  num_iters)
inline

Definition at line 357 of file tensor_benchmarks.h.

◆ typeCasting()

template<typename Device , typename T >
void BenchmarkSuite< Device, T >::typeCasting ( int  num_iters)
inline

Definition at line 56 of file tensor_benchmarks.h.

Member Data Documentation

◆ a_

template<typename Device , typename T >
T* BenchmarkSuite< Device, T >::a_
private

Definition at line 592 of file tensor_benchmarks.h.

◆ b_

template<typename Device , typename T >
T* BenchmarkSuite< Device, T >::b_
private

Definition at line 593 of file tensor_benchmarks.h.

◆ c_

template<typename Device , typename T >
T* BenchmarkSuite< Device, T >::c_
private

Definition at line 594 of file tensor_benchmarks.h.

◆ device_

template<typename Device , typename T >
Device BenchmarkSuite< Device, T >::device_
private

Definition at line 595 of file tensor_benchmarks.h.

◆ k_

template<typename Device , typename T >
TensorIndex BenchmarkSuite< Device, T >::k_
private

Definition at line 590 of file tensor_benchmarks.h.

◆ m_

template<typename Device , typename T >
TensorIndex BenchmarkSuite< Device, T >::m_
private

Definition at line 589 of file tensor_benchmarks.h.

◆ n_

template<typename Device , typename T >
TensorIndex BenchmarkSuite< Device, T >::n_
private

Definition at line 591 of file tensor_benchmarks.h.


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


gtsam
Author(s):
autogenerated on Tue Jul 4 2023 02:41:01