source/matrix/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
static double get_wall_seconds |
( |
|
) |
[static] |
int main |
( |
int |
argc, |
|
|
char * |
argv[] | |
|
) |
| | |
template<typename real >
int mainFun |
( |
int |
maxDim, |
|
|
double * |
timev, |
|
|
double * |
gflops, |
|
|
bool |
writeTomFile | |
|
) |
| | [inline] |
template<typename T >
static void tomatlabfile |
( |
const char * |
name, |
|
|
T * |
values, |
|
|
int |
s, |
|
|
std::ofstream & |
output | |
|
) |
| | [inline, static] |
template<class T >
static void tomatlabfile |
( |
char * |
name, |
|
|
T * |
values, |
|
|
int |
s, |
|
|
std::ofstream & |
output | |
|
) |
| | [inline, static] |
Variable Documentation