|
ergo
|
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 |
Benchmark code for matrix-matrix multiplication (gemm) operation, measuring timings for different matrix sizes.
|
static |
Referenced by mainFun().
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
References SIZE_INCREMENT.
| int mainFun | ( | int | maxDim, |
| double * | timev, | ||
| double * | gflops, | ||
| bool | writeTomFile | ||
| ) |
References A, B, mat::gemm(), get_wall_seconds(), MIN_TIME_PER_STEP, and SIZE_INCREMENT.
|
static |
|
static |
|
static |
Referenced by mainFun().