Library/ManagedCuda/CudaRegisteredHostMemory.cs
/// <summary>
/// Asynchron copy host to 1D Array
/// </summary>
/// <param name="deviceArray"></param>
/// <param name="stream"></param>
/// <param name="offset"></param>
Asynchron copy host to 1D Array
Asynchron copy host to 1D Array
public void AsyncCopyToArray1D(CUarray deviceArray, CUstream stream, SizeT offset)
		{
			if (disposed) throw new ObjectDisposedException(this.ToString());
			res = DriverAPINativeMethods.AsynchronousMemcpy_v2.cuMemcpyHtoAAsync_v2(deviceArray, offset, this._intPtr, SizeInBytes, stream);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cuMemcpyHtoAAsync", res));
			if (res != CUResult.Success) throw new CudaException(res);
		}
public void AsyncCopyToArray1D ( CUarray deviceArray , CUstream stream , SizeT offset ) { if ( disposed ) throw new ObjectDisposedException ( this . ToString ( ) ) ; res = DriverAPINativeMethods . AsynchronousMemcpy_v2 . cuMemcpyHtoAAsync_v2 ( deviceArray , offset , this . _intPtr , SizeInBytes , stream ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , res ) ) ; if ( res != CUResult . Success ) throw new CudaException ( res ) ; }
Asynchron copy host to 1D Array
Asynchron copy host to 1D Array
deviceArray
CUarray
None
stream
CUstream
None
offset
SizeT
None