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