From 1270332f48d9f5ab3f2aac3e0f2d6071977c4962 Mon Sep 17 00:00:00 2001 From: jpekkila Date: Wed, 27 Nov 2019 11:58:14 +0200 Subject: [PATCH] Fixed a small mistake in the last merge --- src/core/device.cu | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/device.cu b/src/core/device.cu index 8e10cf2..4c64098 100644 --- a/src/core/device.cu +++ b/src/core/device.cu @@ -810,8 +810,8 @@ get_neighbor(const int3 offset) MPI_Comm_rank(MPI_COMM_WORLD, &pid); MPI_Comm_size(MPI_COMM_WORLD, &num_processes); - const int n = (int)cbrt(num_processes); - ERRCHK_ALWAYS((int)ceil(cbrt(num_processes)) == n); + const int n = (int)cbrt((float)num_processes); + ERRCHK_ALWAYS((int)ceil(cbrt((float)num_processes)) == n); ERRCHK_ALWAYS(n * n * n == num_processes); return mod(pid + offset.x, n) + offset.y * n + offset.z * n * n; @@ -1202,7 +1202,7 @@ acDeviceRunMPITest(void) acLoadConfig(AC_DEFAULT_CONFIG, &info); // Large mesh dim - const int nn = 512; + const int nn = 256; info.int_params[AC_nx] = info.int_params[AC_ny] = info.int_params[AC_nz] = nn; acUpdateConfig(&info);