Get in Touch
 Duration 8 hours

Course Outline

Foundations of GPU-Accelerated Computing

  • Heterogeneous computing concepts and CPU-GPU architectural design
  • CUDA execution models and memory space hierarchies
  • Compiling CUDA C++ code using nvcc and CMake
  • Validating and setting up the GPU development environment

Parallel Algorithms via Thrust and CUB

  • GPU-accelerated implementations of sort, reduce, and transform operations
  • Adapting STL algorithms for GPU-based execution
  • Utilizing Thrust device vectors and execution policies
  • Employing CUB device-wide primitives for custom processing pipelines

GPU Memory Architecture and Management

  • Distinguishing between global, constant, and texture memory types
  • Managing explicit device memory allocation and data transfers
  • Implementing Unified Memory for streamlined data access
  • Optimizing memory coalescing and data access patterns

Asynchronous Execution with CUDA Streams

  • Creation and lifecycle management of CUDA streams
  • Overlapping kernel execution with data transfer operations
  • Using CUDA events to manage dependencies
  • Tuning stream priorities and concurrency levels

Development of Custom CUDA Kernels

  • Understanding the SIMT programming model and warp execution
  • Configuring kernel launches and implementing grid-stride loops
  • Managing thread indexing and multidimensional grid structures
  • Implementing error handling and CUDA runtime API validation

Thread Hierarchy and Execution Models

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

Flexible Parallelism with Cooperative Groups

  • Exploring the cooperative_groups API and various group types
  • Using thread-block tiles and tiled_partition
  • Executing grid-level cooperative launches
  • Designing multi-grid synchronization patterns

Shared Memory Optimization Strategies

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

Kernel Fusion and Advanced Parallel Patterns

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

Performance Profiling and Optimization with Nsight Systems

  • Analyzing CPU and GPU activity timelines
  • Detecting and resolving memory transfer bottlenecks
  • Profiling kernel performance and occupancy metrics
  • Conducting iterative optimization cycles with Nsight Compute

Modern C++ Features in CUDA Device Code

  • Incorporating lambdas, constexpr, and auto types within kernels
  • Utilizing C++17 parallel algorithms and execution policies
  • Applying 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 executing CUDA graphs
  • Capturing graphs from stream-based execution
  • Updating graphs and implementing conditional execution nodes
  • Minimizing launch latency for iterative workloads

Integration Patterns for Existing Applications

  • Encapsulating GPU code behind standard C++ interfaces
  • Managing multi-GPU and NUMA-based systems
  • Integrating CUDA with CMake build systems
  • Debugging device code using cuda-gdb

Summary and Best Practices

  • Selecting the optimal approach among Thrust, CUB, and custom kernels
  • Achieving performance portability across different GPU architectures
  • Organizing code and applying RAII principles for CUDA resource management
  • Identifying next steps and advanced paths in CUDA learning

Requirements

  • Fundamental C++ proficiency, including lambda expressions, templates, and the STL
  • Understanding of standard algorithms, containers, and iterators
  • Confidence in loops, conditionals, and function management
  • No prior experience with CUDA or GPU programming is necessary

Target Audience

  • C++ developers looking to accelerate compute-intensive applications using GPUs
  • Software engineers moving from CPU-only 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