NPP is the abbreviation of NVIDIA Performance Primitives. It is a free GPU accelerated signal and image processing library that utilizes NVIDIA CUDA enabled GPUs to accelerate processing. NPP is authored and maintained by NVIDIA Corporation. It ships along with the free CUDA Toolkit by NVIDIA.
Questions tagged [npp]
57 questions
9
votes
1 answer
Aren't NPP functions completely optimized?
I developed a naive function for mirroring an image horizontally or vertically using CUDA C++.
Then I came to know that NVIDIA Performance Primitives Library also offers a function for image mirroring .
Just for the sake of comparison, I timed my…

sgarizvi
- 16,623
- 9
- 64
- 98
6
votes
1 answer
Nvidia NPP nppiFilter produces garbage when convolving with 2d kernel
Nvidia Performance Primitives (NPP) provides the nppiFilter function for convolving a user-provided image with a user-provided kernel. For 1D convolution kernels, nppiFilter works properly. However, nppiFilter is producing a garbage image for 2D…

solvingPuzzles
- 8,541
- 16
- 69
- 112
4
votes
1 answer
how to use the grabcut algorithm with cuda8.0
since the The 7_CUDALibraries/grabcutNPP and 7_CUDALibraries/imageSegmentationNPP samples have been removed. These samples used the NPP graphcut APIs, which have been deprecated in CUDA 7.5.
Then how to use the grabcut algorithm with the later…

ZhaoxingNiu
- 41
- 4
4
votes
0 answers
How to call NVIDIA Performance Primitives from python?
Is there a way to call NVIDIA Performance Primitives library (NPP) from python?

Varghese Alex
- 69
- 2
4
votes
2 answers
How does CUDA's nppiMalloc... function guarantee alignment?
Something that's been confusing me for a while is the alignment requirement of allocated CUDA memories. I know that if they are aligned, accessing row elements will be much more efficient.
First a little background:
According to CUDA C Programming…

Maghoumi
- 3,295
- 3
- 33
- 49
4
votes
1 answer
NPP CUDA without freeImage
Is the NPP library for CUDA build to use freeImage only or can I use other struct or just unsigned char *image as inputs in NPPs function.
The reason that I a make this Question is that all the samples for NPP have large wrappers for freeImage.
I…

Steenstrup
- 644
- 6
- 15
4
votes
3 answers
CUDA, NPP Filters
The CUDA NPP library supports filtering of image using the nppiFilter_8u_C1R command but keep getting errors. I have no problem getting the boxFilterNPP sample code up and running.
eStatusNPP = nppiFilterBox_8u_C1R(oDeviceSrc.data(),…

Steenstrup
- 644
- 6
- 15
3
votes
1 answer
Can NPP functions be called as a device function?
Can NPP functions, more concrete npps (https://docs.nvidia.com/cuda/npp/group__npps.html) be called as a device function?
If I create a global function can I inside call npps functions as nppsMaxIndx_32f (to compute max of a vector)?
Example:
I have…

ocerv
- 51
- 5
3
votes
1 answer
NPP and CUDA error checking
I have once again inherited code that looks suspicious; it is basically this:
(void) nppiFilter...(...);
cudaError_t err = cudaGetLastError();
if (err != cudaSuccess)
{
std::cerr << cudaGetErrorString(err);
}
We ignore the NPP error but instead…

Ken Y-N
- 14,644
- 21
- 71
- 114
3
votes
1 answer
What is the right way to resize using NVIDIA NPP to exact destination dimensions?
I'm trying to use NVIDIA NPP to experiment with some image resizing routines. I want to resize to an exact dimension. I've been looking at image resizing using NVIDIA NPP but all of its resize functions take scale factors for X and Y Dimensions, and…

Kshitiz Bakshi
- 81
- 1
- 4
2
votes
1 answer
Undocumented resize error when using Nvidia NPP to resize image
I'm attempting to use the Nvidia performance primatives library to resize an image, but the nppiResize_8u_C3R function is throwing a NPP_RESIZE_FACTOR_ERROR that is not listed in the documentation as one of the error return codes for that function. …

Jason
- 31,834
- 7
- 59
- 78
2
votes
1 answer
Nppi Color Conversion Issue
I'm attempting to convert a frame of 3 channel packed rgb to nv12 using Nvidia's npp library. Here is the code I have so far:
//cpu buffer that will hold converted data
Npp8u* converted_data =…

Declan Kelly
- 23
- 3
2
votes
1 answer
NPP functions with scratch buffer doesn't fill output value
Some code where im trying find maximum:
// 1)
// compute size of scratch buffer
int nBufferSize;
auto status = nppiMaxGetBufferHostSize_32f_C1R(size(img), &nBufferSize);
// status - No_Errors, nBufferSize - computed
// 2)
//…

Anatoly
- 233
- 1
- 2
- 5
2
votes
1 answer
CUDA - Any problems when working with (un-aligned) sub-images (for texture-binding, NPP, ...)?
On the CPU, I am often using 'sub-images' of 2-D images (pitch-linear), which are simply pointing to a certain ROI of the 'master' image. So all modifications to the sub-image in fact change the 'master' image also.
Are there any problems in CUDA…

user2454869
- 105
- 1
- 11
2
votes
1 answer
PyCUDA NPP Library Compatibility
I've been trying to access the Nvidia Performance Primitives library through Python, and I found a very useful tutorial last updated in 2011 at this site: http://openvidia.sourceforge.net/index.php/OpenVIDIA/python
However, after downloading the…

Dan Lenton
- 105
- 9