Compute Library
 22.08
cl_fused_conv2d_elementwise_add.cpp File Reference

Go to the source code of this file.

Macros

#define TICK(clock_name)   auto clock_name##_tick = std::chrono::high_resolution_clock::now();
 
#define TOCK(clock_name, measurement_map)
 
#define TOCK_AVG(clock_name, measurement_map, num_iterations)
 

Functions

int main (int argc, char **argv)
 Main program for sgemm test. More...
 

Macro Definition Documentation

◆ TICK

#define TICK (   clock_name)    auto clock_name##_tick = std::chrono::high_resolution_clock::now();

◆ TOCK

#define TOCK (   clock_name,
  measurement_map 
)
Value:
auto clock_name##_tock = std::chrono::high_resolution_clock::now(); \
measurement_map["\"" #clock_name "\""] = duration_cast<microseconds>(clock_name##_tock - clock_name##_tick);
Examples:
dynamic_fusion/cl_fused_conv2d_elementwise_add.cpp.

Definition at line 58 of file cl_fused_conv2d_elementwise_add.cpp.

◆ TOCK_AVG

#define TOCK_AVG (   clock_name,
  measurement_map,
  num_iterations 
)
Value:
auto clock_name##_tock = std::chrono::high_resolution_clock::now(); \
measurement_map["\"" #clock_name "\""] = duration_cast<microseconds>((clock_name##_tock - clock_name##_tick) / (num_iterations));

Definition at line 61 of file cl_fused_conv2d_elementwise_add.cpp.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Main program for sgemm test.

Parameters
[in]argcNumber of arguments
[in]argvArguments ( [optional] Matrix A, [optional] Matrix B, [optional] Matrix C, [optional] alpha, [optional] beta )

Definition at line 384 of file cl_fused_conv2d_elementwise_add.cpp.

385 {
386  return utils::run_example<ClFusedConv2dEltwiseAddExample>(argc, argv);
387 }