Agora
1.2.0
Agora project
|
#include <gflags/gflags.h>
#include <mkl.h>
#include <iostream>
#include "armadillo"
#include "timer.h"
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 |
#define ARMA_DONT_PRINT_ERRORS |
#define clflushopt | ( | addr | ) | asm volatile(".byte 0x66; clflush %0" : "+m"(*(volatile char*)(addr))); |
DEFINE_uint64 | ( | n_cols | , |
8 | , | ||
"Number of matrix columns" | |||
) |
DEFINE_uint64 | ( | n_iters | , |
10000 | , | ||
"Number of iterations of inversion" | |||
) |
DEFINE_uint64 | ( | n_rows | , |
8 | , | ||
"Number of matrix rows" | |||
) |
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 | ||
) |
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 | ||
) |
double freq_ghz = -1.0 |