print Q(n) and I(n)
This commit is contained in:
@@ -209,6 +209,21 @@ int main(int argc, const char *argv[]) {
|
||||
std::cout << P;
|
||||
std::cout << " flops/cycle\n";
|
||||
|
||||
long long W_per_iter = (long long)(8 + 55 * n_p - 55 + 192 + 4 + 8 + 4 + 10) * n_p;
|
||||
std::cout << "W(n) per iteration: ";
|
||||
std::cout << W_per_iter;
|
||||
std::cout << " flops\n";
|
||||
|
||||
long long Q = 104 * n_p + 32 * 4 + 80;
|
||||
std::cout << "Q(n) per iteration: ";
|
||||
std::cout << Q;
|
||||
std::cout << " bytes\n";
|
||||
|
||||
long long I = (long long)(8 + 55 * n_p - 55 + 192 + 4 + 8 + 4 + 10) * n_p / Q;
|
||||
std::cout << "I(n): ";
|
||||
std::cout << I;
|
||||
std::cout << " flops/byte\n";
|
||||
|
||||
// now we wanna save the data to a csv
|
||||
if (dump_path) {
|
||||
std::ofstream out(dump_path);
|
||||
|
||||
Reference in New Issue
Block a user