Defined nz

Otherwise the coude would not compile.
This commit is contained in:
Miikka Vaisala
2019-06-18 11:58:46 +08:00
parent c9f26d6e58
commit 71a35b2027
2 changed files with 4 additions and 2 deletions

View File

@@ -5,9 +5,9 @@
* "Compile-time" params * "Compile-time" params
* ============================================================================= * =============================================================================
*/ */
AC_nx = 192 AC_nx = 128
AC_ny = 128 AC_ny = 128
AC_nz = 8 AC_nz = 128
AC_dsx = 0.04908738521 AC_dsx = 0.04908738521
AC_dsy = 0.04908738521 AC_dsy = 0.04908738521

View File

@@ -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 nx = end.x - start.x;
const int ny = end.y - start.y; 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) { const int3 dst_idx = (int3) {
threadIdx.x + blockIdx.x * blockDim.x, threadIdx.x + blockIdx.x * blockDim.x,
threadIdx.y + blockIdx.y * blockDim.y, 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 nx = end.x - start.x;
const int ny = end.y - start.y; 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) { const int3 dst_idx = (int3) {
threadIdx.x + blockIdx.x * blockDim.x, threadIdx.x + blockIdx.x * blockDim.x,
threadIdx.y + blockIdx.y * blockDim.y, threadIdx.y + blockIdx.y * blockDim.y,