jobinfo.h 793 Bytes
Newer Older
1
2
3
#pragma once

#include "evalable.h"
Lukas Weber's avatar
Lukas Weber committed
4
#include "iodump.h"
5
#include "mc.h"
Lukas Weber's avatar
Lukas Weber committed
6
7
8
#include "parser.h"
#include <string>
#include <vector>
9
10
11
12
13
14
15
16
17

namespace loadl {

struct jobinfo {
	parser jobfile;
	std::string jobname;

	std::vector<std::string> task_names;

Lukas Weber's avatar
Lukas Weber committed
18
19
	double checkpoint_time{};
	double runtime{};
20
21
22
23
24
25
26
27
28
29

	jobinfo(const std::string &jobfile_name);

	std::string jobdir() const;
	std::string rundir(int task_id, int run_id) const;
	std::string taskdir(int task_id) const;

	static std::vector<std::string> list_run_files(const std::string &taskdir,
	                                               const std::string &file_ending);
	int read_dump_progress(int task_id) const;
30
	void merge_task(int task_id, const mc_factory &mccreator);
31
32
33
34
35
	void concatenate_results();
	void log(const std::string &message);
};

}