Skip to content
Merged
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
7 changes: 7 additions & 0 deletions torchao/experimental/benchmark_infra/ios/output_redirect.mm
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@
close(stdout_dupfd_);
close(stderr_dupfd_);
fclose(redirect_out_);
/* write done file to detect end of benchmark*/
std::string file_name =
std::string(std::getenv("HOME")) + "/tmp/BENCH_DONE";
FILE *donefile = fopen(file_name.c_str(), "w");
std::string done_str = "DONE BENCHMARKING";
fwrite(done_str.c_str(), 1, done_str.size(), donefile);
fclose(donefile);
}
}

Expand Down
Loading