Use of Npp lib with CUDA?

How to use this NPP library with CUDA.
Where should we call the NPP functions?
can we call it inside Kernel definition?
My requirement is for performing affine transformation on an image.

Thanks in Advance

You call the NPP functions from your CPU code. They execute as GPU kernels, but you can’t call them directly from kernels.

Thanks Simon,

                    But i want to know whether the NPP functions need to be compiled using Cuda Nvcc compiler(.cu) or C/C++ compiler(.cpp)? :unsure: