Get in Touch
 Duration 8 hours

Course Outline

GPU Computing and CUDA Architecture

  • Architectural distinctions between CPUs and GPUs
  • The NVIDIA GPU streaming multiprocessor model
  • Overview of the CUDA programming model
  • Heterogeneous computing and the host-device interaction paradigm

Establishing the CUDA Development Environment

  • Installation procedures for CUDA Toolkit 13.x
  • Using the NVCC compiler and managing build workflows
  • Environment validation through device queries
  • Integration with IDEs and essential development tools

Developing and Launching CUDA Kernels

  • Syntax and qualifiers for kernel functions
  • Configuration and execution of kernel launches
  • Implementing vector addition and fundamental data-parallel patterns
  • Implementing CUDA error checking macros

CUDA Thread Hierarchy and Execution Mechanics

  • Organization of grids, blocks, and threads
  • Thread indexing and calculating global IDs
  • Warp execution and the SIMT model
  • Managing occupancy and resource utilization

GPU Memory Architecture and Control

  • Memory types: global, shared, constant, and registers
  • Allocating and releasing device memory
  • Managing data transfers between host and device
  • Utilizing shared memory for intra-block cooperation

Unified Memory and Data Migration

  • The unified memory model and managed allocations
  • Mechanisms for page migration and on-demand paging
  • Asynchronous prefetching using cudaMemPrefetchAsync
  • Applying memory advice hints for specific access patterns

System-Wide Profiling with Nsight Systems

  • Analyzing timelines in Nsight Systems
  • Locating CPU-GPU synchronization points
  • Visualizing kernel execution and memory data flows
  • Interpreting system-level performance metrics

Kernel Optimization with Nsight Compute

  • Interactive kernel profiling in Nsight Compute
  • Analyzing memory throughput and bandwidth
  • Evaluating compute utilization and warp state statistics
  • Following guided analysis and optimization rules

Concurrent Streams and Asynchronous Operations

  • Understanding CUDA streams and the default stream
  • Overlapping kernel execution with data transfers
  • Stream synchronization and the use of CUDA events
  • Design patterns for multi-stream pipelines

Error Handling and Debugging Utilities

  • CUDA API error codes and recovery methods
  • Using Compute-sanitizer for memory access validation
  • Debugging kernels with cuda-gdb
  • Implementing assertions and synchronous error detection

Profile-Driven Optimization Strategy

  • Methodologies for iterative profiling
  • Identifying and prioritizing performance bottlenecks
  • Conducting performance regression testing
  • Documenting optimization choices and outcomes

End-to-End Accelerated Application Project

  • Designing a comprehensive GPU-accelerated solution
  • Integrating profiling throughout the development lifecycle
  • Performance benchmarking and result reporting
  • Considerations for deploying to production environments

Requirements

  • Proficiency in basic C++ programming, including variable types, loops, conditionals, functions, and array manipulation
  • Experience with compiling and executing programs via the command line
  • No previous experience with GPU or CUDA programming is necessary

Target Audience

  • Software developers and engineers aiming to enhance C++ application performance using GPUs
  • Scientific researchers and HPC specialists transitioning from CPU-only environments to heterogeneous computing
  • Technical leads assessing GPU acceleration for production-grade workloads

Number of participants


Price per participant (excl. VAT)

Upcoming Courses

Related Categories