Library/ManagedCuda/CudaArray1D.cs
/// <summary>
/// Copy data from array to array
/// </summary>
/// <param name="dest">Destination array</param>
/// <param name="aBytesToCopy">Size of memory copy in bytes</param>
/// <param name="destOffset">Offset in bytes of destination array</param>
/// <param name="sourceOffset">Offset in bytes of source array</param>
Copy data from array to array
Copy data from array to array
public void CopyFromThisToArray1D(CudaArray1D dest, SizeT aBytesToCopy, SizeT destOffset, SizeT sourceOffset)
        {
            CUResult res;
            res = DriverAPINativeMethods.SynchronousMemcpy_v2.cuMemcpyAtoA_v2(dest.CUArray, destOffset, this.CUArray, sourceOffset, aBytesToCopy);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cuMemcpyAtoA", res));
            if (res != CUResult.Success)
                throw new CudaException(res);
        }
public void CopyFromThisToArray1D ( CudaArray1D dest , SizeT aBytesToCopy , SizeT destOffset , SizeT sourceOffset ) { CUResult res ; res = DriverAPINativeMethods . SynchronousMemcpy_v2 . cuMemcpyAtoA_v2 ( dest . CUArray , destOffset , this . CUArray , sourceOffset , aBytesToCopy ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , res ) ) ; if ( res != CUResult . Success ) throw new CudaException ( res ) ; }
Copy data from array to array
Copy data from array to array
dest
CudaArray1D
None
aBytesToCopy
SizeT
Size of memory copy in bytes
Size of memory copy in bytes
destOffset
SizeT
Offset in bytes of destination array
Offset in bytes of destination array
sourceOffset
SizeT
Offset in bytes of source array
Offset in bytes of source array