public void NormL1(CudaDeviceVariable<double> norm)
{
int bufferSize = NormL1GetBufferHostSize();
CudaDeviceVariable<byte> buffer = new CudaDeviceVariable<byte>(bufferSize);
status = NPPNativeMethods.NPPi.NormL1.nppiNorm_L1_8u_C3R(_devPtrRoi, _pitch, _sizeRoi, norm.DevicePointer, buffer.DevicePointer);
Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiNorm_L1_8u_C3R", status));
buffer.Dispose();
NPPException.CheckNppStatus(status, this);
}