Library/ManagedCuda/NPP/NPPImage_8uC4.cs
/// <summary>
/// image sum with 64-bit long long result. Buffer is internally allocated and freed.
/// </summary>
/// <param name="result">Allocated device memory with size of at least 4 * sizeof(long)</param>
image sum with 64-bit long long result. Buffer is internally allocated and freed.
image sum with 64 - bit long long result . Buffer is internally allocated and freed .
public void Sum(CudaDeviceVariable<long> result)
		{
			int bufferSize = SumLongGetBufferHostSize();
			CudaDeviceVariable<byte> buffer = new CudaDeviceVariable<byte>(bufferSize);
			status = NPPNativeMethods.NPPi.Sum.nppiSum_8u64s_C4R(_devPtrRoi, _pitch, _sizeRoi, buffer.DevicePointer, result.DevicePointer);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiSum_8u64s_C4R", status));
			buffer.Dispose();
			NPPException.CheckNppStatus(status, this);
		}
public void Sum ( CudaDeviceVariable < long > result ) { int bufferSize = SumLongGetBufferHostSize ( ) ; CudaDeviceVariable < byte > buffer = new CudaDeviceVariable < byte > ( bufferSize ) ; status = NPPNativeMethods . NPPi . Sum . nppiSum_8u64s_C4R ( _devPtrRoi , _pitch , _sizeRoi , buffer . DevicePointer , result . DevicePointer ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; buffer . Dispose ( ) ; NPPException . CheckNppStatus ( status , this ) ; }
image sum with 64-bit long long result.
image sum with 64 - bit long long result .
result
CudaDeviceVariable<long>
Allocated device memory with size of at least 4 * sizeof(long)
Allocated device memory with size of at least 4 * sizeof ( long )