| 66 | } |
| 67 | |
| 68 | std::vector<double> timing_data_vector_from_all(const time_sink_to_duration_map &timers) { |
| 69 | std::vector<double> time_spent_vector = timing_data_vector(timers); |
| 70 | const int n = count_processors(); |
| 71 | std::vector<double> alltimes_tmp(n * time_spent_vector.size()); |
| 72 | for (size_t i = 0; i < time_spent_vector.size(); ++i) { |
| 73 | alltimes_tmp[i * n + my_rank()] = time_spent_vector[i]; |
| 74 | } |
| 75 | |
| 76 | std::vector<double> alltimes(alltimes_tmp.size()); |
| 77 | sum_to_all(alltimes_tmp.data(), alltimes.data(), alltimes_tmp.size()); |
| 78 | return alltimes; |
| 79 | } |
| 80 | |
| 81 | void pt(double mean, double stddev, const char *label) { |
| 82 | if (mean != 0) { |
no test coverage detected