public static int cuMemsetD16(CUdeviceptr dstDevice, short us, long N)
    {
        return checkResult(cuMemsetD16Native(dstDevice, us, N));
    }
public static int cuMemsetD16 ( CUdeviceptr dstDevice , short us , long N ) { return checkResult ( cuMemsetD16Native ( dstDevice , us , N ) ) ; }
Initializes device memory.

<pre>
CUresult cuMemsetD16 (
CUdeviceptr dstDevice,
unsigned short us,
size_t N )
</pre>
<div>
<p>Initializes device memory.  Sets the
memory range of <tt>N</tt> 16-bit values to the specified value <tt>us</tt>. The <tt>dstDevice</tt> pointer must be two byte aligned.
</p>
<p>Note that this function is asynchronous
with respect to the host unless <tt>dstDevice</tt> refers to pinned
host memory.
</p>
<div>
<span>Note:</span>
<p>Note that this
function may also return error codes from previous, asynchronous
launches.
</p>
</div>
</p>
</div>

@param dstDevice Destination device pointer
@param us Value to set
@param N Number of elements

@return CUDA_SUCCESS, CUDA_ERROR_DEINITIALIZED, CUDA_ERROR_NOT_INITIALIZED,
CUDA_ERROR_INVALID_CONTEXT, CUDA_ERROR_INVALID_VALUE

@see JCudaDriver#cuArray3DCreate
@see JCudaDriver#cuArray3DGetDescriptor
@see JCudaDriver#cuArrayCreate
@see JCudaDriver#cuArrayDestroy
@see JCudaDriver#cuArrayGetDescriptor
@see JCudaDriver#cuMemAlloc
@see JCudaDriver#cuMemAllocHost
@see JCudaDriver#cuMemAllocPitch
@see JCudaDriver#cuMemcpy2D
@see JCudaDriver#cuMemcpy2DAsync
@see JCudaDriver#cuMemcpy2DUnaligned
@see JCudaDriver#cuMemcpy3D
@see JCudaDriver#cuMemcpy3DAsync
@see JCudaDriver#cuMemcpyAtoA
@see JCudaDriver#cuMemcpyAtoD
@see JCudaDriver#cuMemcpyAtoH
@see JCudaDriver#cuMemcpyAtoHAsync
@see JCudaDriver#cuMemcpyDtoA
@see JCudaDriver#cuMemcpyDtoD
@see JCudaDriver#cuMemcpyDtoDAsync
@see JCudaDriver#cuMemcpyDtoH
@see JCudaDriver#cuMemcpyDtoHAsync
@see JCudaDriver#cuMemcpyHtoA
@see JCudaDriver#cuMemcpyHtoAAsync
@see JCudaDriver#cuMemcpyHtoD
@see JCudaDriver#cuMemcpyHtoDAsync
@see JCudaDriver#cuMemFree
@see JCudaDriver#cuMemFreeHost
@see JCudaDriver#cuMemGetAddressRange
@see JCudaDriver#cuMemGetInfo
@see JCudaDriver#cuMemHostAlloc
@see JCudaDriver#cuMemHostGetDevicePointer
@see JCudaDriver#cuMemsetD2D8
@see JCudaDriver#cuMemsetD2D8Async
@see JCudaDriver#cuMemsetD2D16
@see JCudaDriver#cuMemsetD2D16Async
@see JCudaDriver#cuMemsetD2D32
@see JCudaDriver#cuMemsetD2D32Async
@see JCudaDriver#cuMemsetD8
@see JCudaDriver#cuMemsetD8Async
@see JCudaDriver#cuMemsetD16Async
@see JCudaDriver#cuMemsetD32
@see JCudaDriver#cuMemsetD32Async