Course Outline
Foundations of GPU-Accelerated Computing
- Heterogeneous computing concepts and CPU-GPU architectural differences.
- CUDA execution models and memory spaces.
- Compiling CUDA C++ code using nvcc and CMake.
- Validating the GPU development environment setup.
Parallel Algorithms via Thrust and CUB
- Accelerating sort, reduce, and transform operations on the GPU.
- Adapting STL algorithms for GPU execution.
- Using Thrust device vectors and execution policies.
- Applying CUB device-wide primitives for custom processing pipelines.
GPU Memory Architecture and Handling
- Types of memory: global, constant, and texture.
- Explicit allocation and transfer of device memory.
- Using Unified Memory for easier data access management.
- Optimizing memory coalescing and access patterns.
Asynchronous Execution via CUDA Streams
- Setting up and managing CUDA streams.
- Overlapping kernel execution with data transfer operations.
- Managing dependencies using CUDA events.
- Tuning stream priorities and concurrency levels.
Development of Custom CUDA Kernels
- Understanding the SIMT programming model and warp execution.
- Configuring kernel launches and utilizing grid-stride loops.
- Thread indexing strategies and multidimensional grids.
- Error handling and validating CUDA runtime API calls.
Thread Hierarchy and Execution Models
- Grids, blocks, and threads within device code.
- Warp-level primitives and ballot operations.
- Block-level synchronization and barrier mechanisms.
- Analyzing occupancy and resource utilization.
Cooperative Groups for Flexible Parallelism
- Exploring the cooperative_groups API and various group types.
- Thread-block tiles and tiled_partition techniques.
- Grid-level cooperative launch methods.
- Synchronization patterns across multiple grids.
Optimizing Shared Memory Techniques
- Shared memory bank structure and avoiding bank conflicts.
- Tiling strategies for efficient matrix operations.
- Utilizing shared memory as a user-controlled cache.
- Using cuda::shared_memory_mdspan for multidimensional data views.
Kernel Fusion and Advanced Parallel Techniques
- Combining multiple kernels to minimize launch overhead.
- Algorithms for scan, reduce-by-key, and segmented processing.
- Atomic operations and lock-free data structures.
- Warp-aggregated atomic operations to improve throughput.
Profiling and Tuning with Nsight Systems
- Analyzing CPU and GPU activity timelines.
- Spotting bottlenecks in memory transfers.
- Profiling kernel performance and occupancy.
- Iterative optimization using Nsight Compute.
Modern C++ Features in CUDA Device Code
- Using lambdas, constexpr, and auto within kernels.
- C++17 parallel algorithms and execution policies.
- C++20 concepts and ranges applied on the device.
- C++23 support via nvcc and CCCL 3.x.
CUDA Graphs and Advanced Asynchrony
- Defining and initiating CUDA graphs.
- Capturing graphs from stream execution.
- Updating graphs and implementing conditional execution nodes.
- Minimizing launch latency for iterative workloads.
Integration Strategies for Existing Applications
- Encapsulating GPU code behind C++ interfaces.
- Handling multi-GPU and NUMA system configurations.
- Integrating build systems with CMake and CUDA.
- Debugging device code using cuda-gdb.
Overview and Best Practices
- Selecting between Thrust, CUB, and custom kernel solutions.
- Achieving performance portability across different GPU architectures.
- Organizing code and using RAII for managing CUDA resources.
- Further steps and advanced paths in CUDA learning.
Requirements
- Foundational C++ skills, including lambda expressions, templates, and the Standard Template Library (STL).
- Understanding of standard algorithms, containers, and iterators.
- Confidence with loops, conditional statements, and functions.
- No previous experience with CUDA or GPU programming is necessary.
Target Audience
- C++ developers looking to speed up computationally heavy applications using GPUs.
- Software engineers moving from CPU-only development to heterogeneous parallel programming.
- Performance engineers and quantitative developers handling large datasets.
Testimonials (3)
Initially, the trainer's pace seemed a bit too fast for me, but after offering the feedback during the training, he acknowledged it and slowed down the pace without sacrificing any of the lectures. Good rapport with the audience, very friendly and open for discussions.
Alexandru Ostafi - Siemens
Course - Advanced C++ : Practical workshop
Detailed explanation, re-iteration of points in a quite subtle way that really drove the knowledge home very well. Rod's willingness to double-check the odd obscure question that we rasied, to be sure that his answers were 100% right. Also, his interest in discussing the pros & cons of alternate coding styles so that we learnt not only how to use C++ in our intended way, but why it should be done that way.
Nick Dillon - cellxica Ltd
Course - Using C++ in Embedded Systems - Applying C++11/C++14
Experience sharing, it's teacher's know-how and valuable.