Get in Touch
 Duration 8 hours

Course Outline

Foundations of GPU-Accelerated Computing

  • Understanding heterogeneous computing and the interplay between CPU and GPU architectures.
  • Exploring CUDA execution flows and memory hierarchies.
  • Compiling CUDA C++ code using nvcc and integrating with CMake.
  • Validating and setting up a robust GPU development environment.

Parallel Algorithm Implementation with Thrust and CUB

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

GPU Memory Architecture and Administration

  • Distinguishing between global, constant, and texture memory spaces.
  • Managing explicit device memory allocation and host-device transfers.
  • Simplifying data access patterns through Unified Memory.
  • Optimizing memory coalescing and access patterns for peak throughput.

Asynchronous Processing via CUDA Streams

  • Creating and orchestrating multiple CUDA streams.
  • Overlapping kernel computation with host-device data transfers.
  • Using CUDA events to manage task dependencies and sequencing.
  • Tuning stream priorities and concurrency for optimal resource utilization.

Developing Custom CUDA Kernels

  • Mastering the SIMT model and understanding warp-level execution dynamics.
  • Configuring kernel launches and implementing grid-stride loop patterns.
  • Managing thread indexing across multidimensional grid structures.
  • Implementing robust error handling and CUDA runtime API validation.

Thread Hierarchy and Execution Dynamics

  • Structuring device code using grids, blocks, and threads.
  • Applying warp-level primitives and ballot operations for collective logic.
  • Implementing block-level synchronization and barrier mechanisms.
  • Analyzing occupancy and resource utilization to identify bottlenecks.

Flexible Parallelism with Cooperative Groups

  • Utilizing the cooperative_groups API and various group hierarchies.
  • Working with thread-block tiles and tiled_partition strategies.
  • Executing grid-level cooperative launches for complex dependencies.
  • Implementing multi-grid synchronization patterns for distributed tasks.

Shared Memory Optimization Strategies

  • Understanding shared memory banks and avoiding bank conflicts.
  • Applying tiling techniques to optimize matrix operations.
  • Using shared memory as a programmable, user-managed cache.
  • Leveraging cuda::shared_memory_mdspan for multidimensional data views.

Kernel Fusion and Advanced Parallel Patterns

  • Fusing multiple kernel operations to minimize launch overhead.
  • Implementing scan, reduce-by-key, and segmented algorithm patterns.
  • Using atomic operations and lock-free structures for concurrency.
  • Employing warp-aggregated atomics to enhance throughput.

Performance Profiling with Nsight Systems

  • Analyzing timelines to correlate CPU and GPU activities.
  • Identifying and resolving memory transfer bottlenecks.
  • Profiling kernel performance metrics and occupancy levels.
  • Refining code through iterative optimization using Nsight Compute.

Leveraging Modern C++ in CUDA Device Code

  • Integrating lambdas, constexpr, and auto within kernel implementations.
  • Applying C++17 parallel algorithms and advanced execution policies.
  • Utilizing C++20 concepts and ranges within device-side code.
  • Exploring C++23 support in nvcc and the CCCL 3.x library ecosystem.

CUDA Graphs and Advanced Async Workflows

  • Defining, capturing, and launching CUDA graph workloads.
  • Converting stream execution sequences into reusable graphs.
  • Implementing graph updates and conditional execution nodes.
  • Reducing launch latency for high-frequency, iterative workloads.

Integration Strategies for Existing Systems

  • Encapsulating GPU logic behind clean C++ interfaces.
  • Managing resources in multi-GPU and NUMA-aware environments.
  • Seamlessly integrating CUDA builds with CMake project structures.
  • Debugging device-side code effectively using cuda-gdb.

Conclusions and Industry Best Practices

  • Evaluating when to use Thrust, CUB, or custom kernel solutions.
  • Ensuring performance portability across diverse GPU architectures.
  • Organizing code structure and managing CUDA resources with RAII.
  • Mapping out next steps and advanced learning paths in CUDA.

Requirements

  • Fundamental proficiency in C++, including a solid grasp of lambda expressions, templates, and the STL.
  • Working knowledge of standard algorithms, data containers, and iterator patterns.
  • Confidence in implementing loops, conditional logic, and function management.
  • No prior experience with CUDA or GPU programming is necessary.

Target Audience

  • C++ developers aiming to boost the performance of compute-heavy applications using GPUs.
  • Software engineers shifting from exclusive CPU development to heterogeneous parallel architectures.
  • Performance engineers and quantitative developers handling large-scale datasets.

Number of participants


Price per participant

Testimonials (3)

Upcoming Courses

Related Categories