-
Notifications
You must be signed in to change notification settings - Fork 3
/
benchmarkResult.h
43 lines (35 loc) · 1019 Bytes
/
benchmarkResult.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef CUFFTADVISOR_BENCHMARKRESULT_H_
#define CUFFTADVISOR_BENCHMARKRESULT_H_
#include <cmath>
#include "transform.h"
#include "utils.h"
namespace cuFFTAdvisor {
class BenchmarkResult {
public:
BenchmarkResult(cuFFTAdvisor::Transform const *transform)
: transform(transform),
planSizeEstimateB(0),
planSizeEstimate2B(0),
planSizeRealB(0),
planTimeMS(NAN),
execTimeMS(NAN),
totalTimeMS(NAN),
errMsg("") {}
~BenchmarkResult() { delete transform; }
void print(FILE *stream = stdout) const;
static void printHeader(FILE *stream = stdout);
static bool execSort(const BenchmarkResult *l, const BenchmarkResult *r);
public:
cuFFTAdvisor::Transform const *transform;
size_t planSizeEstimateB;
size_t planSizeEstimate2B;
size_t planSizeRealB;
float planTimeMS;
float execTimeMS;
float totalTimeMS;
std::string errMsg;
private:
float getPerf() const;
};
} // namespace cuFFTAdvisor
#endif // CUFFTADVISOR_BENCHMARKRESULT_H_