Skip to content

Commit

Permalink
[Fix] Task scheduler error prompt upon build/run failure (apache#13601)
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterJH5574 authored Dec 13, 2022
1 parent ec9fcc0 commit b7015bb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/meta_schedule/task_scheduler/task_scheduler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ void TaskCleanUp(TaskRecordNode* self, int task_id, const Array<RunnerResult>& r
std::string err = error_msg.value();
TVM_PY_LOG(INFO, logger) << std::fixed << std::setprecision(4) //
<< "[Task #" << task_id << ": " << name << "] Trial #" << trials
<< ": Error in building:\n"
<< ": Error in "
<< (builder_result->error_msg.defined() ? "building" : "running")
<< ":\n"
<< err << "\n"
<< tir::AsTVMScript(sch->mod()) << "\n"
<< Concat(sch->trace().value()->AsPython(false), "\n");
Expand Down

0 comments on commit b7015bb

Please sign in to comment.