-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCoarseGrain.hpp
43 lines (37 loc) · 949 Bytes
/
CoarseGrain.hpp
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 CoarseGrain_hpp
#define CoarseGrain_hpp
#include "Application.hpp"
#include "helper.hpp"
#include "create_application.hpp"
#include "Job.hh"
#include "Stage.hpp"
#include "Process.hpp"
#include "FineGrain.hpp"
#include "FineGrainWeights.hpp"
#include "FineGrainDerivative.hpp"
#include <iostream>
#include <vector>
#include <string>
#include <fstream>
#include <sstream>
#include <map>
#include <cstdlib>
#include <list>
#include <memory>
#include <chrono>
#include <ctime>
typedef std::chrono::milliseconds milli;
typedef std::chrono::time_point<std::chrono::system_clock> time_point;
class CoarseGrain{
Job::time_instant d; // deadline
Job::time_instant D; // delta
Job::time_instant tol = 1000;
unsigned int diff1=2, diff2=2;
unsigned int it = 0;
unsigned int max_it = 5;
FineGrain* fine_grain;
public:
CoarseGrain(Job::time_instant deadline);
void min(std::ofstream &ofs, Process &p, std::string argv);
};
#endif