From 4ffde83215150700084a60b2298687ddfeed317c Mon Sep 17 00:00:00 2001 From: Johannes Pekkila Date: Thu, 24 Oct 2019 15:22:47 +0200 Subject: [PATCH] Set default values for benchmarking --- src/core/device.cu | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/core/device.cu b/src/core/device.cu index 9439137..839634a 100644 --- a/src/core/device.cu +++ b/src/core/device.cu @@ -1202,7 +1202,7 @@ acDeviceRunMPITest(void) acLoadConfig(AC_DEFAULT_CONFIG, &info); // Large mesh dim - const int nn = 256; + const int nn = 512; info.int_params[AC_nx] = info.int_params[AC_ny] = info.int_params[AC_nz] = nn; acUpdateConfig(&info); @@ -1245,8 +1245,15 @@ acDeviceRunMPITest(void) acDeviceCreate(0, submesh_info, &device); acDeviceLoadMesh(device, STREAM_DEFAULT, submesh); + // Warmup + for (int i = 0; i < 10; ++i) { + acDeviceIntegrateStepMPI(device, FLT_EPSILON); + } + acDeviceSynchronizeStream(device, STREAM_ALL); + MPI_Barrier(MPI_COMM_WORLD); + // Benchmark - const int num_iters = 100; + const int num_iters = 1000; Timer total_time; timer_reset(&total_time); for (int i = 0; i < num_iters; ++i) {