code: public static int cudaMemset2D(Pointer mem, long pitch, int c, long width, long height)
      {
          return checkResult(cudaMemset2DNative(mem, pitch, c, width, height));
      }
docs: Initializes or sets device memory to a value.
  
  <pre>
  cudaError_t cudaMemset2D (
  void* devPtr,
  size_t pitch,
  int  value,
  size_t width,
  size_t height )
  </pre>
  <div>
  <p>Initializes or sets device memory to a
  value.  Sets to the specified value <tt>value</tt> a matrix (<tt>height</tt> rows of <tt>width</tt> bytes each) pointed to by <tt>dstPtr</tt>. <tt>pitch</tt> is the width in bytes of the 2D array
  pointed to by <tt>dstPtr</tt>, including any padding added to the end
  of each row. This function performs fastest when the pitch is one that
  has been passed
  back by cudaMallocPitch().
  </p>
  <p>Note that this function is asynchronous
  with respect to the host unless <tt>devPtr</tt> refers to pinned host
  memory.
  </p>
  <div>
  <span>Note:</span>
  <ul>
  <li>
  <p>Note that this function may
  also return error codes from previous, asynchronous launches.
  </p>
  </li>
  </ul>
  </div>
  </p>
  </div>
  
  @param devPtr Pointer to 2D device memory
  @param pitch Pitch in bytes of 2D device memory
  @param value Value to set for each byte of specified memory
  @param width Width of matrix set (columns in bytes)
  @param height Height of matrix set (rows)
  
  @return cudaSuccess, cudaErrorInvalidValue,
  cudaErrorInvalidDevicePointer
  
  @see JCuda#cudaMemset
  @see JCuda#cudaMemset3D
  @see JCuda#cudaMemsetAsync
  @see JCuda#cudaMemset2DAsync
  @see JCuda#cudaMemset3DAsync