Build and run a targeted CUDA sample to understand exactly how GPU memory management or thread coordination works in real code.
Use a CUDA sample as a starting point for your own GPU-accelerated algorithm, studying NVIDIA's recommended code patterns.
Cross-compile CUDA samples for an NVIDIA Tegra embedded device for use in robotics or automotive applications.
Requires an NVIDIA GPU and matching CUDA Toolkit version, Windows builds also need Visual Studio.
This repository is a collection of example programs created by NVIDIA to show developers how to use CUDA, which is NVIDIA's programming system for running code on a graphics card (GPU) instead of a regular processor. GPUs can handle many calculations at once, making them much faster than a regular CPU for certain tasks like graphics, simulations, and machine learning. Each sample in this collection demonstrates a specific feature or technique available in the CUDA Toolkit, which is the set of tools NVIDIA provides for GPU programming. The samples cover a wide range of topics, from basic memory management and thread coordination to more advanced features like multi-GPU setups, cooperative computation patterns, and integration with graphics APIs. Each sample is a self-contained program you can build and run to see a particular concept in action. The collection is kept in sync with specific CUDA Toolkit versions, so you can match the samples to the version of CUDA you have installed. Building the samples requires installing the CUDA Toolkit and a compatible C++ build system. On Linux, you use CMake and a standard compiler. On Windows, you use Visual Studio. The README provides step-by-step instructions for both platforms, including cross-compilation for NVIDIA Tegra devices used in embedded systems like robots and automotive hardware. This is not an end-user application. It is a reference library for developers who are already writing or learning to write GPU-accelerated code. If you are new to GPU programming and want to understand how specific CUDA features work in practice, these samples give you working code to read, compile, and experiment with directly on your own machine.
← nvidia on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.