forked from HiPerCoRe/cuFFTAdvisor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbenchmarker.h
More file actions
28 lines (22 loc) · 856 Bytes
/
benchmarker.h
File metadata and controls
28 lines (22 loc) · 856 Bytes
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
#ifndef CUFFTADVISOR_BENCHMARKER_H_
#define CUFFTADVISOR_BENCHMARKER_H_
#include <cstdlib>
#include "benchmarkResult.h"
#include "cudaUtils.h"
namespace cuFFTAdvisor {
class Benchmarker {
public:
static BenchmarkResult const *benchmark(Transform const *tr);
static void estimatePlanSize(BenchmarkResult *res);
private:
static void checkMemory(BenchmarkResult *res);
static void estimatePlanSize(cufftHandle &plan, BenchmarkResult *res);
static void createPlan(cufftHandle &plan, Transform const *tr,
BenchmarkResult *res);
static float execute(cufftHandle &plan, void *d_in, void *d_out,
Transform const *tr);
static void execute(cufftHandle &plan, Transform const *tr,
BenchmarkResult *res);
};
} // namespace cuFFTAdvisor
#endif // CUFFTADVISOR_BENCHMARKER_H_