Course Outline
Introduction to GPU-Accelerated Computing
- Heterogeneous computing and CPU-GPU architectural principles
- CUDA execution models and memory spaces
- Compiling CUDA C++ code using nvcc and CMake
- Verifying the GPU development environment
Parallel Algorithms with Thrust and CUB
- GPU-accelerated sorting, reduction, and transformation operations
- Refactoring STL algorithms for GPU execution
- Thrust device vectors and execution policies
- CUB device-wide primitives for custom pipelines
GPU Memory Architecture and Management
- Global, constant, and texture memory types
- Explicit device memory allocation and data transfer
- Unified Memory for simplified data access
- Memory coalescing and optimising access patterns
Asynchronous Execution with CUDA Streams
- Creation and management of CUDA streams
- Overlapping kernel execution with data transfers
- Managing dependencies with CUDA events
- Stream prioritisation and concurrency tuning
Writing Custom CUDA Kernels
- The SIMT programming model and warp execution
- Kernel launch configuration and grid-stride loops
- Thread indexing and multi-dimensional grids
- Error handling and CUDA runtime API validation
Thread Hierarchy and Execution Model
- Grids, blocks, and threads within device code
- Warp-level primitives and ballot operations
- Block-level synchronisation and barriers
- Occupancy and resource utilisation analysis
Cooperative Groups for Flexible Parallelism
- The cooperative_groups API and various group types
- Thread-block tiles and tiled_partition
- Grid-level cooperative launches
- Multi-grid synchronisation patterns
Shared Memory Optimisation Techniques
- Shared memory banks and avoiding bank conflicts
- Tiling strategies for matrix operations
- Using shared memory as a user-managed cache
- cuda::shared_memory_mdspan for multi-dimensional views
Kernel Fusion and Advanced Parallel Patterns
- Fusing multiple kernels to reduce launch overhead
- Scan, reduce-by-key, and segmented algorithms
- Atomic operations and lock-free data structures
- Warp-aggregated atomics for improved throughput
Profiling and Optimisation with Nsight Systems
- Timeline analysis of CPU and GPU activity
- Identifying memory transfer bottlenecks
- Profiling kernel performance and occupancy
- Iterative optimisation using Nsight Compute
Modern C++ Features in CUDA Device Code
- Utilising lambdas, constexpr, and auto within kernels
- C++17 parallel algorithms and execution policies
- C++20 concepts and ranges on device
- C++23 support in nvcc and CCCL 3.x
CUDA Graphs and Advanced Asynchrony
- Defining and launching CUDA graphs
- Graph capture from stream execution
- Graph updates and conditional execution nodes
- Reducing launch latency for iterative workloads
Integration Patterns for Existing Applications
- Wrapping GPU code behind C++ interfaces
- Managing multi-GPU and NUMA systems
- Integrating with CMake and CUDA in build systems
- Debugging device code using cuda-gdb
Summary and Best Practices
- Selecting between Thrust, CUB, and custom kernels
- Achieving performance portability across GPU architectures
- Code organisation and RAII for CUDA resources
- Next steps and advanced CUDA learning paths
Requirements
- Foundational proficiency in C++, including lambda expressions, templates, and the STL
- Understanding of standard algorithms, containers, and iterators
- Confidence in managing loops, conditional logic, and function structures
- No prior experience with CUDA or GPU programming is necessary
Target Audience
- C++ developers aiming to optimise compute-heavy applications through GPU utilisation
- Software engineers expanding their expertise from CPU-centric to heterogeneous parallel programming
- Performance engineers and quantitative developers handling extensive datasets
Custom Corporate Training
Training solutions designed exclusively for businesses.
- Customised Content: We adapt the syllabus and practical exercises to the real goals and needs of your project.
- Flexible Schedule: Dates and times adapted to your team's agenda.
- Format: Online (live), In-company (at your offices), or Hybrid.
Price per private group, online live training, starting from £3200 + VAT*
Contact us for an exact quote and to hear our latest promotions
Testimonials (3)
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.
Carey Fan - Logitech
Course - C/C++ Secure Coding
The online-ness of it meant that we could save a lot of time. Much appreciated. Also, the fact that the trainer knew both c# and Cpp was a huge help since he could explain everything through knowledge we already possessed.