Skip to content

Commit

Permalink
fixed instr log format for profiling
Browse files Browse the repository at this point in the history
  • Loading branch information
Yi Li committed Nov 30, 2021
1 parent b6bf2fa commit 4e7a5f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/target-sc/ilator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ bool Ilator::GenerateExecuteKernel(const std::string& dir) {
" instr_cntr++;\n"
"}}\n"
"void {project}::LogInstrSequence(const std::string& instr_name, const long int& exec_time) {{\n"
" instr_log << \"Instr No.\" << std::setw(5) << GetInstrCntr() << '\\t';\n"
" instr_log << \"Instr No. \" << std::setw(8) << GetInstrCntr() << '\\t';\n"
" instr_log << instr_name << \" is activated\\t\";\n"
" instr_log << \"exec_time: \" << exec_time * 1e-3 << \" ms\\n\";\n"
" IncrementInstrCntr();\n"
Expand Down

0 comments on commit 4e7a5f5

Please sign in to comment.