Skip to content
Merged
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
4 changes: 2 additions & 2 deletions src/meta_schedule/measure_callback/echo_statistics.cc
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ constexpr const double kMaxTime = 1e10;

std::string GetTaskName(const TuneContext& task, int task_id) {
std::ostringstream os;
os << '#' << task_id << ": " << task->task_name;
os << "Task #" << task_id << ": " << task->task_name;
return os.str();
}

Expand All @@ -240,7 +240,7 @@ double GetRunMs(const Array<FloatImm>& run_secs) {
struct TaskInfo {
std::string name;
double flop = 0.0;
int trials = 0;
int trials = -1;
int best_round = -1;
double best_ms = kMaxTime;
double best_gflops = 0.0;
Expand Down
6 changes: 3 additions & 3 deletions src/meta_schedule/task_scheduler/task_scheduler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ Array<RunnerFuture> SendToRunner(const Runner& runner, const TuneContext& contex

void TaskSchedulerNode::InitializeTask(int task_id) {
TuneContext task = this->tasks[task_id];
LOG(INFO) << "Initializing task " << task_id << ": " << task->task_name << ", mod =\n"
LOG(INFO) << "Initializing Task #" << task_id << ": " << task->task_name << ", mod =\n"
<< tir::AsTVMScript(task->mod);
this->tasks[task_id]->Initialize();
}
Expand Down Expand Up @@ -124,7 +124,7 @@ void TaskSchedulerNode::Tune() {

int running_tasks = tasks.size();
for (int task_id; (task_id = NextTaskId()) != -1;) {
LOG(INFO) << "Scheduler picks Task #" << task_id + 1 << ": " << tasks[task_id]->task_name;
LOG(INFO) << "Scheduler picks Task #" << task_id << ": " << tasks[task_id]->task_name;
TuneContext task = tasks[task_id];
ICHECK(!task->is_stopped);
ICHECK(!task->runner_futures.defined());
Expand All @@ -138,7 +138,7 @@ void TaskSchedulerNode::Tune() {
} else {
SetTaskStopped(task_id);
--running_tasks;
LOG(INFO) << "Task #" << task_id + 1 << " has finished. Remaining task(s): " << running_tasks;
LOG(INFO) << "Task #" << task_id << " has finished. Remaining task(s): " << running_tasks;
}
}
ICHECK_EQ(running_tasks, 0) << "Not all tasks are finished";
Expand Down