Tensor Comprehensions
|
#include <printer.h>
Public Member Functions | |
Printer (size_t generation, size_t total, const std::atomic_size_t ¤tCompilationJob, const std::atomic_size_t &numEvaluations) | |
~Printer () | |
void | record (Duration runtime) |
void | stop () |
void | printAll () |
Private Member Functions | |
void | printLoop () |
Private Attributes | |
size_t | generation_ |
std::vector< Duration > | runtimes_ |
std::mutex | runtimesMtx_ |
std::atomic_bool | stopPrinting_ {false} |
std::thread | printerThread_ |
const size_t | total_ |
const std::atomic_size_t & | currentCompilationJob_ |
const std::atomic_size_t & | numEvaluations_ |
Helper class to pretty print autotuning progress
tc::autotune::Printer::Printer | ( | size_t | generation, |
size_t | total, | ||
const std::atomic_size_t & | currentCompilationJob, | ||
const std::atomic_size_t & | numEvaluations | ||
) |
tc::autotune::Printer::~Printer | ( | ) |
void tc::autotune::Printer::printAll | ( | ) |
|
private |
void tc::autotune::Printer::record | ( | Duration | runtime | ) |
void tc::autotune::Printer::stop | ( | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
mutableprivate |
|
private |
|
private |