The CUDA Toolkit 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 toolkit resources on this page, CUDA documentation, or download the complete toolkit.
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 samples release notes for more information.
|
||
![]() This sample demonstrates a CUDA mathematical simulation of group of birds behavior when in flight. |
![]() ![]() |
|
|
||
![]() An example of fluid simulation using CUDA and CUFFT, with Direct3D 9 rendering. A Direct3D Capable device is required. |
![]() ![]() |
|
|
||
![]() An example of fluid simulation using CUDA and CUFFT, with OpenGL rendering. |
![]() ![]()
Download - Windows (x86) |
|
|
||
![]() This sample simulates an Ocean height field using CUFFT Library and renders the result using OpenGL. |
![]() ![]()
Download - Windows (x86) |
|
|
||
![]() This sample uses CUDA to simulate and visualize a large set of particles and their physical interaction. Adding "-particles= |
![]() ![]()
Download - Windows (x86) |
|
|
||
![]() This sample extracts a geometric isosurface from a volume dataset using the marching cubes algorithm. It uses the scan (prefix sum) function from the Thrust library to perform stream compaction. |
![]() ![]()
Download - Windows (x86) |
|
|
||
![]() This sample demonstrates efficient all-pairs simulation of a gravitational n-body simulation in CUDA. This sample accompanies the GPU Gems 3 chapter "Fast N-Body Simulation with CUDA". With CUDA 5.5, performance on Tesla K20c has increased to over 1.8TFLOP/s single precision. Double Performance has also improved on all Kepler and Fermi GPU architectures as well. Starting in CUDA 4.0, the nBody sample has been updated to take advantage of new features to easily scale the n-body simulation across multiple GPUs in a single PC. Adding "-numbodies= |
![]() ![]()
Download - Windows (x86) |
|
|
||
![]() Smoke simulation with volumetric shadows using half-angle slicing technique. Uses CUDA for procedural simulation, Thrust Library for sorting algorithms, and OpenGL for graphics rendering. |
![]() ![]()
Download - Windows (x86) |