Library/ManagedCuda/CudaDeviceVariable.cs
/// <summary>
/// Copy data from device to device memory
/// </summary>
/// <param name="source">Source pointer to device memory</param>
Copy data from device to device memory
Copy data from device to device memory
public void CopyToDevice(CUdeviceptr source)
		{
			if (disposed) throw new ObjectDisposedException(this.ToString());
			SizeT aSizeInBytes = _size * _typeSize;
			CUResult res;
			res = DriverAPINativeMethods.SynchronousMemcpy_v2.cuMemcpyDtoD_v2(_devPtr, source, aSizeInBytes);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cuMemcpyDtoD", res));
			if (res != CUResult.Success)
				throw new CudaException(res);
		}
public void CopyToDevice ( CUdeviceptr source ) { if ( disposed ) throw new ObjectDisposedException ( this . ToString ( ) ) ; SizeT aSizeInBytes = _size * _typeSize ; CUResult res ; res = DriverAPINativeMethods . SynchronousMemcpy_v2 . cuMemcpyDtoD_v2 ( _devPtr , source , aSizeInBytes ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , res ) ) ; if ( res != CUResult . Success ) throw new CudaException ( res ) ; }
Copy data from device to device memory
Copy data from device to device memory
source
CUdeviceptr
Source pointer to device memory
Source pointer to device memory