Documentation for cuMemcpy2DUnaligned might be wrong and could be a bit better Cuda Driver API Memor

Documentation for cuMemcpy2DUnaligned seems to be copied from cuMemcpy2D but should be updated a bit so it doesn’t show these restrictions again… a bit strange to mention that again.

Perhaps make documentation vice versa or so…

// cuMemcpy2D() returns an error if any pitch is greater than the maximum
// allowed (CU_DEVICE_ATTRIBUTE_MAX_PITCH). cuMemAllocPitch() passes back
// pitches that always work with cuMemcpy2D(). On intra-device memory copies
// (device to device, CUDA array to device, CUDA array to CUDA array),
// cuMemcpy2D() may fail for pitches not computed by cuMemAllocPitch().
// cuMemcpy2DUnaligned() does not have this restriction, but may run
// significantly slower in the cases where cuMemcpy2D() would have returned
// an error code.
//
// param pCopy - Parameters for the memory copy
//
// returns
// CUDA_SUCCESS,
// CUDA_ERROR_DEINITIALIZED,
// CUDA_ERROR_NOT_INITIALIZED,
// CUDA_ERROR_INVALID_CONTEXT,
// CUDA_ERROR_INVALID_VALUE
//
cuMemcpy2DUnaligned......

Bye,
Skybuck.