This guide details the CUDA programming model, memory hierarchy, and API for general-purpose parallel computing on NVIDIA GPUs.
The document serves as a comprehensive reference for developers using NVIDIA CUDA technology to perform general-purpose parallel computing. It covers the transition from graphics processing to compute architectures, explaining the scalable programming model and thread hierarchies required for efficient GPU utilization.
Key technical areas addressed include the full memory hierarchy (global, shared, texture, surface), asynchronous concurrent execution via streams and events, and interoperability with OpenGL and Direct3D. The guide also provides detailed specifications on hardware implementation, performance optimization strategies, and language extensions specific to CUDA C.
| Maximum threads per block (2.x) | 1024 |
|---|---|
| Warp size | 32 |
| Maximum shared memory (2.x) | 48 KB |
The maximum number of threads per block is 512 for compute capability 1.x devices and 1024 for compute capability 2.x devices.
The maximum amount of shared memory is 16 KB for compute capability 1.x devices and 48 KB for compute capability 2.x devices.
Only devices with compute capability 2.x support double-precision floating-point numbers, while compute capability 1.x devices do not.