| 268 | } |
| 269 | |
| 270 | int main(int argc, char **argv) { |
| 271 | initialize mpi(argc, argv); |
| 272 | verbosity = 0; |
| 273 | master_printf("Benchmarking with %d processor%s...\n", count_processors(), |
| 274 | count_processors() > 1 ? "s" : ""); |
| 275 | |
| 276 | master_printf("bench:, test, total time (s), normalized time (s/Mgs)\n"); |
| 277 | |
| 278 | showbench("Periodic 6x4 ", bench_periodic(6.0, 4.0, one)); |
| 279 | showbench("Periodic 12x1", bench_periodic(12.0, 1.0, one)); |
| 280 | showbench("Periodic 1x12", bench_periodic(1.0, 12.0, one)); |
| 281 | showbench("Periodic 12x0", bench_periodic(12.0, 0.0, one)); |
| 282 | showbench("Periodic 12x12", bench_periodic(12.0, 12.0, one)); |
| 283 | |
| 284 | width = 20.0; |
| 285 | showbench("Flux 1D 100", bench_flux_1d(100.0, bump)); |
| 286 | width = 10.0; |
| 287 | showbench("Flux 1D 100", bench_flux_1d(100.0, bump)); |
| 288 | width = 300.0; |
| 289 | showbench("Flux 1D 100", bench_flux_1d(100.0, bump)); |
| 290 | |
| 291 | showbench("3D 1x1x10", bench_3d(1.0, 1.0, 10.0, one)); |
| 292 | showbench("3D 10x1x1", bench_3d(10.0, 1.0, 1.0, one)); |
| 293 | showbench("3D 1x1x1 ", bench_3d(1.0, 1.0, 1.0, one)); |
| 294 | showbench("3D 3x3x3 ", bench_3d(3.0, 3.0, 3.0, one)); |
| 295 | showbench("3D 10x3x0", bench_3d_periodic(10.0, 3.0, 0.0, one)); |
| 296 | showbench("3D 0x3x10", bench_3d_periodic(0.0, 3.0, 10.0, one)); |
| 297 | |
| 298 | showbench("2D 6x4 ", bench_2d(6.0, 4.0, one)); |
| 299 | showbench("2D 12x12 ", bench_2d(12.0, 12.0, one)); |
| 300 | showbench("2D 12x12 ", bench_2d(12.0, 12.0, one)); |
| 301 | |
| 302 | showbench("2D TM 6x4 nonlinear ", bench_2d_tm_nonlinear(6.0, 4.0, one)); |
| 303 | showbench("2D TM 6x4 ", bench_2d_tm(6.0, 4.0, one)); |
| 304 | showbench("2D TM 12x12 ", bench_2d_tm(12.0, 12.0, one)); |
| 305 | |
| 306 | showbench("2D TE 2x2 nonlinear ", bench_2d_te_nonlinear(2.0, 2.0, one)); |
| 307 | showbench("2D TE 2x2 ", bench_2d_te(2.0, 2.0, one)); |
| 308 | showbench("2D TE 10x11 nonlinear ", bench_2d_te_nonlinear(10.0, 11.0, one)); |
| 309 | showbench("2D TE 10x11 ", bench_2d_te(10.0, 11.0, one)); |
| 310 | |
| 311 | master_printf("\nnote: 1 Mgs = 1 million grid point time steps\n"); |
| 312 | |
| 313 | return 0; |
| 314 | } |
nothing calls this directly
no test coverage detected