This project is read-only.

NPPImage_32fcC3 to CudaDeviceVariable

Feb 11 at 4:16 PM

Is there a way to use NPP library variables with cuDNN?

The problem is that after preprocessing Images width NPP need to send data to Cudnn.

Cudnn has variabale type:

float[] DATA_host=new float[10];
CudaDeviceVariable<float> DATA_dev;
DATA_dev=DATA_host; <- Copy data to video card memory

NPP has:

NPPImage_8uC3 TMP = new NPPImage_8uC3(bmp.Width, bmp.Height);
NPPImage_8uC3 DATA2 =new NPPImage_8uC3(bmp.Width, bmp.Height);

Both of them allocates memory in GPU (different types).

Is there a way to copy data in GPU used by NPP to CudaDeviceVariable:

DATA_dev=(float)TMP; <--- Copy data from NPP casting (float) to CudaDeviceVariable type variable