Aggregate the performance results over the number of cores used */
| 4828 | |
| 4829 | /* Aggregate the performance results over the number of cores used */ |
| 4830 | static void |
| 4831 | print_dec_bler(struct thread_params *t_params, unsigned int used_cores) |
| 4832 | { |
| 4833 | unsigned int core_idx = 0; |
| 4834 | double total_mbps = 0, total_bler = 0, total_iter = 0; |
| 4835 | double snr = get_snr(); |
| 4836 | |
| 4837 | for (core_idx = 0; core_idx < used_cores; core_idx++) { |
| 4838 | printf("Core%u BLER %.1f %% - Iters %.1f - Tp %.1f Mbps %s\n", |
| 4839 | t_params[core_idx].lcore_id, |
| 4840 | t_params[core_idx].bler * 100, |
| 4841 | t_params[core_idx].iter_average, |
| 4842 | t_params[core_idx].mbps, |
| 4843 | get_vector_filename()); |
| 4844 | total_mbps += t_params[core_idx].mbps; |
| 4845 | total_bler += t_params[core_idx].bler; |
| 4846 | total_iter += t_params[core_idx].iter_average; |
| 4847 | } |
| 4848 | total_bler /= used_cores; |
| 4849 | total_iter /= used_cores; |
| 4850 | |
| 4851 | printf("SNR %.2f BLER %.1f %% - Iterations %.1f %d - Tp %.3f Mbps %s\n", |
| 4852 | snr, total_bler * 100, total_iter, get_iter_max(), |
| 4853 | total_mbps, get_vector_filename()); |
| 4854 | } |
| 4855 | |
| 4856 | /* |
| 4857 | * Test function that determines BLER wireless performance |
no test coverage detected