Get in Touch
 Duration 8 hours

Course Outline

Introduction to GPU-Accelerated Computing

  • Understanding heterogeneous computing and CPU-GPU architectural differences.
  • Examining CUDA execution models and memory hierarchies.
  • Compiling CUDA C++ projects using nvcc and CMake.
  • Validating and setting up the GPU development environment.

Parallel Algorithms with Thrust and CUB

  • Implementing GPU-accelerated sorting, reduction, and transformation.
  • Adapting STL algorithms for efficient GPU execution.
  • Working with Thrust device vectors and execution policies.
  • Utilizing CUB device-wide primitives to build custom pipelines.

GPU Memory Architecture and Management

  • Exploring global, constant, and texture memory types.
  • Managing explicit device memory allocation and data transfers.
  • Using Unified Memory to simplify data access patterns.
  • Optimizing memory coalescing and access patterns.

Asynchronous Execution with CUDA Streams

  • Creating and managing CUDA stream workflows.
  • Overlapping kernel execution with data transfer operations.
  • Implementing dependency management using CUDA events.
  • Tuning stream priorities and concurrency settings.

Writing Custom CUDA Kernels

  • Mastering the SIMT programming model and warp-level execution.
  • Configuring kernel launches and implementing grid-stride loops.
  • Handling thread indexing and multidimensional grid structures.
  • Implementing robust error handling and CUDA runtime API checks.

Thread Hierarchy and Execution Model

  • Understanding grids, blocks, and threads in device code.
  • Applying warp-level primitives and ballot operations.
  • Implementing block-level synchronization and barriers.
  • Analyzing occupancy and resource utilization metrics.

Cooperative Groups for Flexible Parallelism

  • Exploring the cooperative_groups API and various group types.
  • Working with thread-block tiles and tiled_partition.
  • Implementing grid-level cooperative launches.
  • Designing multi-grid synchronization patterns.

Shared Memory Optimization Techniques

  • Managing shared memory banks and avoiding bank conflicts.
  • Applying tiling strategies for matrix operations.
  • Utilizing shared memory as a user-managed cache.
  • Using cuda::shared_memory_mdspan for multidimensional views.

Kernel Fusion and Advanced Parallel Patterns

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

Profiling and Optimization with Nsight Systems

  • Analyzing CPU and GPU activity via timeline visualization.
  • Identifying and resolving memory transfer bottlenecks.
  • Profiling kernel performance and occupancy metrics.
  • Performing iterative optimization using Nsight Compute.

Modern C++ Features in CUDA Device Code

  • Incorporating lambdas, constexpr, and auto in kernel code.
  • Applying C++17 parallel algorithms and execution policies.
  • Using C++20 concepts and ranges on the device.
  • Leveraging C++23 support in nvcc and CCCL 3.x.

CUDA Graphs and Advanced Asynchrony

  • Defining and launching CUDA graph objects.
  • Capturing graphs from stream execution flows.
  • Implementing graph updates and conditional execution nodes.
  • Reducing launch latency for iterative workloads.

Integration Patterns for Existing Applications

  • Encapsulating GPU code behind clean C++ interfaces.
  • Managing multi-GPU and NUMA system configurations.
  • Integrating build systems with CMake and CUDA.
  • Debugging device code effectively with cuda-gdb.

Summary and Best Practices

  • Selecting between Thrust, CUB, and custom kernels appropriately.
  • Ensuring performance portability across different GPU architectures.
  • Organizing code structure and applying RAII for CUDA resources.
  • Outlining next steps and advanced CUDA learning pathways.

Requirements

  • Fundamental C++ proficiency, encompassing lambda expressions, templates, and the STL.
  • Working knowledge of standard algorithms, containers, and iterators.
  • Proficiency with basic control flow structures such as loops, conditionals, and functions.
  • No previous experience with CUDA or GPU programming is necessary.

Target Audience

  • C++ developers looking to optimize compute-intensive applications using GPU acceleration.
  • Software engineers expanding their skill set from CPU-only development to heterogeneous parallel programming.
  • Performance engineers and quantitative developers handling large-scale datasets.

Number of participants


Price per participant

Testimonials (3)

Upcoming Courses

Related Categories