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