HILA
Loading...
Searching...
No Matches
bench.h
1#include <sstream>
2#include <iostream>
3#include <string>
4#include <math.h>
5#include <assert.h>
6#include <sys/time.h>
7#include <ctime>
8
9#include "plumbing/defs.h"
10#include "datatypes/matrix.h"
11#include "datatypes/sun.h"
12//#include "datatypes/wilson_vector.h"
13#include "plumbing/field.h"
14//#include "dirac/staggered.h"
15//#include "dirac/wilson.h"
16
17// Minimum time to run each benchmark
18// in microseconds
19constexpr double mintime = 1000;
20
21// Direct output to stdout
22// std::ostream &hila::out = std::cout;
23
24// Calculate time difference in milliseconds
25static inline double timediff(timeval start, timeval end) {
26 long long t1 = (long long)(start.tv_usec) + 1000000 * (long long)(start).tv_sec;
27 long long t2 = (long long)(end.tv_usec) + 1000000 * (long long)(end).tv_sec;
28 return 1e-3 * (double)(t2 - t1);
29}
This file defines all includes for HILA.
This files containts definitions for the Field class and the classes required to define it such as fi...
Definition of Matrix types.