Get in Touch
 Duration 8 hours

Course Outline

Introduction to GPU-Accelerated Computing

  • Concepts of heterogeneous computing and the interplay between CPU and GPU architectures.
  • Understanding CUDA execution models and distinct memory spaces.
  • Compiling CUDA C++ projects using nvcc and CMake integration.
  • Validating and setting up the GPU development environment.

Parallel Algorithms with Thrust and CUB

  • Implementing GPU-accelerated sorting, reduction, and transformation operations.
  • Refactoring existing STL algorithms for efficient GPU execution.
  • Utilizing Thrust device vectors and flexible execution policies.
  • Applying CUB device-wide primitives to build custom processing pipelines.

GPU Memory Architecture and Management

  • Distinguishing between global, constant, and texture memory types.
  • Handling explicit device memory allocation and data transfer mechanisms.
  • Simplifying data access strategies through Unified Memory.
  • Optimizing memory access patterns and ensuring coalescing.

Asynchronous Execution with CUDA Streams

  • Techniques for creating and effectively managing CUDA streams.
  • Overlapping kernel execution with data transfer operations for improved throughput.
  • Using CUDA events to manage dependencies between tasks.
  • Adjusting stream priorities and concurrency for optimal performance.

Writing Custom CUDA Kernels

  • Exploring the SIMT programming model and the concept of warp execution.
  • Configuring kernel launches and implementing grid-stride loops.
  • Managing thread indexing and structuring multidimensional grids.
  • Implementing robust error handling and CUDA runtime API checks.

Thread Hierarchy and Execution Model

  • Understanding the hierarchy of grids, blocks, and threads in device code.
  • Utilizing warp-level primitives and ballot operations.
  • Managing block-level synchronization and synchronization barriers.
  • Analyzing occupancy and resource utilization rates.

Cooperative Groups for Flexible Parallelism

  • Mastering the cooperative_groups API and various group types.
  • Implementing thread-block tiles and using tiled_partition.
  • Executing grid-level cooperative launches.
  • Designing multi-grid synchronization patterns.

Shared Memory Optimization Techniques

  • Understanding shared memory banks and strategies to avoid bank conflicts.
  • Applying tiling strategies to optimize matrix operations.
  • Utilizing shared memory as a user-managed cache for better performance.
  • Leveraging cuda::shared_memory_mdspan for multidimensional data views.

Kernel Fusion and Advanced Parallel Patterns

  • Fusing multiple kernels to minimize launch overhead.
  • Implementing scan, reduce-by-key, and other segmented algorithms.
  • Using atomic operations and lock-free data structures for concurrency.
  • Enhancing throughput with warp-aggregated atomics.

Profiling and Optimization with Nsight Systems

  • Performing timeline analysis of CPU and GPU activity.
  • Identifying and resolving memory transfer bottlenecks.
  • Profiling kernel performance and occupancy metrics.
  • Conducting iterative optimization cycles using Nsight Compute.

Modern C++ Features in CUDA Device Code

  • Incorporating lambdas, constexpr, and auto type deduction in kernels.
  • Utilizing C++17 parallel algorithms and execution policies.
  • Applying C++20 concepts and ranges within device code.
  • Exploring C++23 support in nvcc and CCCL 3.x.

CUDA Graphs and Advanced Asynchrony

  • Defining, capturing, and launching CUDA graphs.
  • Capturing graph structures from stream execution flows.
  • Updating graphs and implementing conditional execution nodes.
  • Reducing launch latency for repetitive or iterative workloads.

Integration Patterns for Existing Applications

  • Encapsulating GPU code behind clean C++ interfaces.
  • Managing workloads on multi-GPU and NUMA systems.
  • Integrating CUDA builds effectively within CMake projects.
  • Debugging device code using cuda-gdb tools.

Summary and Best Practices

  • Evaluating the best choice between Thrust, CUB, and custom kernels.
  • Achieving performance portability across different GPU architectures.
  • Organizing code effectively and using RAII for CUDA resource management.
  • Identifying next steps and advanced learning paths in CUDA.

Requirements

  • Foundational C++ proficiency, encompassing lambda expressions, templates, and the STL.
  • Working knowledge of standard algorithms, containers, and iterators.
  • Confidence in utilizing loops, conditionals, and function definitions.
  • No prior experience with CUDA or GPU programming is necessary.

Target Audience

  • C++ developers aiming to boost the speed of compute-intensive applications using GPU acceleration.
  • Software engineers expanding their expertise from CPU-centric development to heterogeneous parallel computing.
  • Performance engineers and quantitative developers managing large-scale datasets.

Number of participants


Price per participant

Testimonials (4)

Upcoming Courses

Related Categories