ergo
blastime.cc File Reference

Benchmark code for matrix-matrix multiplication (gemm) operation, measuring timings for different matrix sizes. More...

#include <iostream>
#include <fstream>
#include <iomanip>
#include <ctime>
#include <cmath>
#include <cstdlib>
#include <string.h>
#include <sys/time.h>
#include <vector>
#include "mat_gblas.h"

Functions

static double get_wall_seconds ()
 
template<class T >
static void tomatlabfile (char *name, T *values, int s, std::ofstream &output)
 
template<typename real >
int mainFun (int maxDim, double *timev, double *gflops, bool writeTomFile)
 
template<typename T >
static void tomatlabfile (const char *name, T *values, int s, std::ofstream &output)
 
int main (int argc, char *argv[])
 

Variables

static const int MIN_TIME_PER_STEP = 5
 
static const int SIZE_INCREMENT = 2
 

Detailed Description

Benchmark code for matrix-matrix multiplication (gemm) operation, measuring timings for different matrix sizes.

Function Documentation

◆ get_wall_seconds()

static double get_wall_seconds ( )
static

Referenced by mainFun().

◆ main()

int main ( int  argc,
char *  argv[] 
)

References SIZE_INCREMENT.

◆ mainFun()

template<typename real >
int mainFun ( int  maxDim,
double *  timev,
double *  gflops,
bool  writeTomFile 
)

◆ tomatlabfile() [1/2]

template<class T >
static void tomatlabfile ( char *  name,
T *  values,
int  s,
std::ofstream &  output 
)
static

◆ tomatlabfile() [2/2]

template<typename T >
static void tomatlabfile ( const char *  name,
T *  values,
int  s,
std::ofstream &  output 
)
static

Variable Documentation

◆ MIN_TIME_PER_STEP

const int MIN_TIME_PER_STEP = 5
static

Referenced by mainFun().

◆ SIZE_INCREMENT

const int SIZE_INCREMENT = 2
static

Referenced by main(), and mainFun().