From 71a35b202795851aabe8b63969e782798bd37936 Mon Sep 17 00:00:00 2001 From: Miikka Vaisala Date: Tue, 18 Jun 2019 11:58:46 +0800 Subject: [PATCH] Defined nz Otherwise the coude would not compile. --- config/astaroth.conf | 4 ++-- src/core/kernels/kernels.cuh | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/config/astaroth.conf b/config/astaroth.conf index e10f461..6d83764 100644 --- a/config/astaroth.conf +++ b/config/astaroth.conf @@ -5,9 +5,9 @@ * "Compile-time" params * ============================================================================= */ -AC_nx = 192 +AC_nx = 128 AC_ny = 128 -AC_nz = 8 +AC_nz = 128 AC_dsx = 0.04908738521 AC_dsy = 0.04908738521 diff --git a/src/core/kernels/kernels.cuh b/src/core/kernels/kernels.cuh index 278f2de..886d513 100644 --- a/src/core/kernels/kernels.cuh +++ b/src/core/kernels/kernels.cuh @@ -853,6 +853,7 @@ kernel_filter(const __restrict__ AcReal* src, const int3 start, const int3 end, const int nx = end.x - start.x; const int ny = end.y - start.y; + const int nz = end.z - start.z; //MV: Added this because it was undefined const int3 dst_idx = (int3) { threadIdx.x + blockIdx.x * blockDim.x, threadIdx.y + blockIdx.y * blockDim.y, @@ -881,6 +882,7 @@ kernel_filter_vec(const __restrict__ AcReal* src0, const int nx = end.x - start.x; const int ny = end.y - start.y; + const int nz = end.z - start.z; //MV: Added this because it was undefined const int3 dst_idx = (int3) { threadIdx.x + blockIdx.x * blockDim.x, threadIdx.y + blockIdx.y * blockDim.y,