#include "PModelsRunner.h"
#include <luci/Log.h>
#include <iostream>
Go to the source code of this file.
|
int | entry (int argc, char **argv) |
|
◆ entry()
int entry |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 23 of file Driver.cpp.
24{
26
27 if (argc != 5)
28 {
29 std::cerr
30 <<
"Usage: " <<
argv[0]
31 << " <path/to/partition/config> <num_inputs> <path/to/input/prefix> <path/to/output/file>\n";
32 return EXIT_FAILURE;
33 }
34
35
36
37
38
39
40 const char *config_filename =
argv[1];
42 const char *input_prefix =
argv[3];
43 const char *output_file =
argv[4];
44
46
47 INFO(l) <<
"Read config file: " << config_filename << std::endl;
49 return EXIT_FAILURE;
50
51 INFO(l) <<
"Read input file: " << input_prefix <<
", #inputs: " <<
num_inputs << std::endl;
53
54 INFO(l) <<
"Run all partitioned models..." << std::endl;
56 return EXIT_FAILURE;
57
58 INFO(l) <<
"Save output file: " << output_file << std::endl;
60
61 return EXIT_SUCCESS;
62}
PModelsRunner runs partitioned models from input data file and stores output data to a file.
void save_outputs(const std::string &output_file)
void load_inputs(const std::string &input_prefix, int32_t num_inputs)
bool load_config(const std::string &filename)
References INFO, prunner::PModelsRunner::load_config(), prunner::PModelsRunner::load_inputs(), LOGGER, prunner::PModelsRunner::run(), and prunner::PModelsRunner::save_outputs().