Agora  1.2.0
Agora project
bench.cc File Reference
#include <gflags/gflags.h>
#include <mkl.h>
#include <iostream>
#include "armadillo"
#include "timer.h"
Include dependency graph for bench.cc:

Macros

#define ARMA_DONT_PRINT_ERRORS
 
#define clflushopt(addr)   asm volatile(".byte 0x66; clflush %0" : "+m"(*(volatile char*)(addr)));
 

Functions

 DEFINE_uint64 (n_iters, 10000, "Number of iterations of inversion")
 
 DEFINE_uint64 (n_rows, 8, "Number of matrix rows")
 
 DEFINE_uint64 (n_cols, 8, "Number of matrix columns")
 
float mat_mult_perf (std::vector< arma::cx_fmat > &test_matrices, std::vector< arma::cx_fmat > &test_col_vectors)
 
float mat_mult_perf_jit (std::vector< arma::cx_fmat > &test_matrices, std::vector< arma::cx_fmat > &test_col_vectors)
 
void flush_cache_lines (std::vector< arma::cx_fmat > &test_matrices, std::vector< arma::cx_fmat > &test_col_vectors)
 
int main (int argc, char **argv)
 

Variables

double freq_ghz = -1.0
 

Macro Definition Documentation

◆ ARMA_DONT_PRINT_ERRORS

#define ARMA_DONT_PRINT_ERRORS

◆ clflushopt

#define clflushopt (   addr)    asm volatile(".byte 0x66; clflush %0" : "+m"(*(volatile char*)(addr)));

Function Documentation

◆ DEFINE_uint64() [1/3]

DEFINE_uint64 ( n_cols  ,
,
"Number of matrix columns"   
)

◆ DEFINE_uint64() [2/3]

DEFINE_uint64 ( n_iters  ,
10000  ,
"Number of iterations of inversion"   
)

◆ DEFINE_uint64() [3/3]

DEFINE_uint64 ( n_rows  ,
,
"Number of matrix rows"   
)

◆ flush_cache_lines()

void flush_cache_lines ( std::vector< arma::cx_fmat > &  test_matrices,
std::vector< arma::cx_fmat > &  test_col_vectors 
)
Here is the caller graph for this function:

◆ main()

int main ( int  argc,
char **  argv 
)
Here is the call graph for this function:

◆ mat_mult_perf()

float mat_mult_perf ( std::vector< arma::cx_fmat > &  test_matrices,
std::vector< arma::cx_fmat > &  test_col_vectors 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ mat_mult_perf_jit()

float mat_mult_perf_jit ( std::vector< arma::cx_fmat > &  test_matrices,
std::vector< arma::cx_fmat > &  test_col_vectors 
)
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ freq_ghz

double freq_ghz = -1.0