Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/scheduler/cpp/data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,13 @@
#include <vector>
#include "data.h"

std::unordered_map<std::string, std::vector<ScheduleUnit>> parse_configurations_file(
app_configs_t parse_configurations_file(
std::string configurations_file) {
std::ifstream infile(configurations_file);
std::string app_id;
int num_frozen, fps;
double cost, metric;
std::unordered_map<std::string, std::vector<ScheduleUnit>>
possible_configurations = {};
app_configs_t possible_configurations = {};
while (infile >> app_id >> num_frozen >> fps >> cost >> metric) {
std::vector<ScheduleUnit> units;
ScheduleUnit unit = ScheduleUnit(app_id, num_frozen, fps, cost, metric);
Expand Down
2 changes: 1 addition & 1 deletion src/scheduler/cpp/data.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ typedef std::shared_ptr<Schedule> (*scheduler_fn_ptr) (
double budget,
int verbose);

std::unordered_map<std::string, std::vector<ScheduleUnit>> parse_configurations_file(
app_configs_t parse_configurations_file(
std::string configurations_file);

std::vector<double> parse_model_file(std::string model_file);
Expand Down
Loading