I am trying to add two dimensional array in cuda c++
my global function looks like this
global void addMatrix(int *d_array1, int *d_array2, int d_result)
int j= blockIdx.xblockDim.x + threadIdx.x;
int i= blockIdy.y*blockDim.y + threadIdy.y;
// rest of the function
but while compiling, an error shows which says blockIdy.y and threadIdy.y are undefined.
Please let me know how can I fix this.