Library/ManagedCuda/NPP/NPPImageBase.cs
/// <summary>
/// Async Copy data from device to device memory
/// </summary>
/// <param name="source">Source pointer to device memory</param>
/// <param name="stream"></param>
Async Copy data from device to device memory
Async Copy data from device to device memory
public void AsyncCopyToDevice(CUdeviceptr source, CUstream stream)
		{
			if (disposed) throw new ObjectDisposedException(this.ToString());
			SizeT aSizeInBytes = _pitch * _sizeOriginal.height;
			CUResult res;
			res = DriverAPINativeMethods.AsynchronousMemcpy_v2.cuMemcpyDtoDAsync_v2(_devPtr, source, aSizeInBytes, stream);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cuMemcpyDtoDAsync", res));
			if (res != CUResult.Success)
				throw new CudaException(res);
		}
public void AsyncCopyToDevice ( CUdeviceptr source , CUstream stream ) { if ( disposed ) throw new ObjectDisposedException ( this . ToString ( ) ) ; SizeT aSizeInBytes = _pitch * _sizeOriginal . height ; CUResult res ; res = DriverAPINativeMethods . AsynchronousMemcpy_v2 . cuMemcpyDtoDAsync_v2 ( _devPtr , source , aSizeInBytes , stream ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , res ) ) ; if ( res != CUResult . Success ) throw new CudaException ( res ) ; }
Async Copy data from device to device memory
Async Copy data from device to device memory
source
CUdeviceptr
Source pointer to device memory
Source pointer to device memory
stream
CUstream
None