-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdump.cc
33 lines (30 loc) · 1.12 KB
/
dump.cc
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
#include "benchmark.h"
#include "interpolate.h"
#include <vector>
template <int record_bytes = 8>
void dump_keys(InputBase &in, const std::string &distribution,
const std::string ¶m, long n) {
auto &keys = static_cast<Input<8> &>(in).keys;
IBase<8>::Float<> interpolate(keys);
for (auto key : keys) {
std::cout << key << '\n';
// std::cout << n << '\t' << distribution << '\t' << param << '\t' << key
// << '\n';
// record_bytes << '\t' << key << '\t' << index++ << '\t' << 0 << '\n';
}
}
int main(int argc, char *argv[]) {
std::vector<Run> runs = Run::load(std::ifstream(argv[1]));
for (auto &id_input : InputBase::load(runs)) {
for (auto key : static_cast<Input<8> &>(*id_input.second).keys) {
std::cout << key << '\n';
}
// auto[ distribution, param, n, record_bytes ] = id_input.first;
// dump_keys<>(*id_input.second, distribution, param, n);
// for (auto key : static_cast<Input<8>&>(*id_input.second).keys) {
// std::cout << n << '\t' << distribution << '\t' << param << '\t' <<
// record_bytes << '\t' << key << '\n';
//}
}
return 0;
}