NVIDIA CUDA Libraries SDK Code Samples

The GPU Computing SDK includes 100+ code samples, utilities, whitepapers, and additional documentation to help you get started developing, porting, and optimizing your applications for the CUDA architecture. You can get quick access to many of the SDK resources on this page, or download the complete SDK.

Please note that you may need to install the latest NVIDIA drivers and CUDA Toolkit to compile and run the code samples.

Refer to the following release note for more information ( Release Notes )

The NVIDIA CUDA Toolkit is required to compile code samples. Please obtain the CUDA Toolkit here.


Histogram Equalization with NPP For a direct link to this sample, right-click and copy the URL (shortcut) of this link icon.

This SDK sample demonstrates how to use NPP for histogram equalization for image data.
  Minimum Required GPU
Minimum Required GPUor later
Minimum Required GPU




Browse Files


FreeImage and NPP Interopability For a direct link to this sample, right-click and copy the URL (shortcut) of this link icon.

A simple SDK sample demonstrate how to use FreeImage library with NPP.
  Minimum Required GPU
Minimum Required GPUor later
Minimum Required GPU




Browse Files


Box Filter with NPP For a direct link to this sample, right-click and copy the URL (shortcut) of this link icon.

A NPP SDK sample that demonstrates how to use NPP FilterBox function to perform a Box Filter.
  Minimum Required GPU
Minimum Required GPUor later
Minimum Required GPU




Browse Files


Image Segmentation using Graphcuts with NPP For a direct link to this sample, right-click and copy the URL (shortcut) of this link icon.

This sample that demonstrates how to perform image segmentation using the NPP GraphCut function.
  Minimum Required GPU
Minimum Required GPUor later
Minimum Required GPU




Browse Files


Preconditioned Conjugate Gradient For a direct link to this sample, right-click and copy the URL (shortcut) of this link icon.

This sample implements a preconditioned conjugate gradient solver on GPU using CUBLAS and CUSPARSE library.
  Minimum Required GPU
Minimum Required GPUor later
Minimum Required GPU




Browse Files


ConjugateGradient For a direct link to this sample, right-click and copy the URL (shortcut) of this link icon.

This sample implements a conjugate gradient solver on GPU using CUBLAS and CUSPARSE library.
  Minimum Required GPU
Minimum Required GPUor later
Minimum Required GPU




Browse Files


batchCUBLAS For a direct link to this sample, right-click and copy the URL (shortcut) of this link icon.

A project to demonstrate batching CUBLAS calls to improve performance
  Minimum Required GPU
Minimum Required GPUor later
Minimum Required GPU




Browse Files


Simple CUBLAS For a direct link to this sample, right-click and copy the URL (shortcut) of this link icon.

Example of using CUBLAS using the new CUBLAS API interface available in CUDA 4.0.
  Minimum Required GPU
Minimum Required GPUor later
Minimum Required GPU




Browse Files


Simple CUFFT For a direct link to this sample, right-click and copy the URL (shortcut) of this link icon.

Example of using CUFFT. In this example, CUFFT is used to compute the 1D-convolution of some signal with some filter by transforming both into frequency domain, multiplying them together, and transforming the signal back to time domain.
  Minimum Required GPU
Minimum Required GPUor later
Minimum Required GPU




Browse Files

Last Update: 2/5/2011