from the above very simple code to test cudaMallocPitch and cudaMemcpy2D, the output is coorect p_h[i][j] = 1 for small i and j.
but all p_h[i][j] = 0 for large values of i and j…
any comments or corrections i should make?
i suspect its because i am copying 1d array into 2d array, which is violation of cudaMemcpy2D…
from the above very simple code to test cudaMallocPitch and cudaMemcpy2D, the output is coorect p_h[i][j] = 1 for small i and j.
but all p_h[i][j] = 0 for large values of i and j…
any comments or corrections i should make?
i suspect its because i am copying 1d array into 2d array, which is violation of cudaMemcpy2D…