CUDA Code Samples
There are many CUDA code samples included as part of the CUDA Toolkit to help you get started on the path of writing software with CUDA C/C++
The code samples covers a wide range of applications and techniques, including:
Availability
The latest versions of the CUDA Toolkit (which is required to compile the code samples) is available on the CUDA Downloads Page.
Individual code samples are also available for download, organized into several categories:
All of the code samples are available under a permissive license that allows you to freely incorporate them into your applications and create derivative works for commercial, academic, or personal use.
References