Defined nz
Otherwise the coude would not compile.
This commit is contained in:
@@ -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
|
||||||
|
@@ -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,
|
||||||
|
Reference in New Issue
Block a user