Get in Touch
 Duration 8 hours

Course Outline

GPU Computing and CUDA Architecture

  • Differences between CPU and GPU architectures
  • NVIDIA GPU streaming multiprocessor framework
  • Overview of the CUDA programming model
  • Heterogeneous computing and the host-device relationship

Preparing the CUDA Development Environment

  • Setup of CUDA Toolkit 13.x
  • NVCC compiler usage and build processes
  • Environment validation through device queries
  • IDE integration and associated development utilities

Developing and Initiating CUDA Kernels

  • Kernel function syntax and modifiers
  • Configuration and execution of launches
  • Vector addition and fundamental data-parallel techniques
  • Implementing CUDA error checking macros

CUDA Thread Hierarchy and Execution Framework

  • Organization of grids, blocks, and threads
  • Thread indexing and calculation of global IDs
  • Warp execution and the SIMT model
  • Occupancy levels and resource usage

GPU Memory Structure and Administration

  • Memory categories: global, shared, constant, and registers
  • Device memory allocation and deallocation
  • Data movement between host and device
  • Utilizing shared memory for intra-block cooperation

Unified Memory and Data Migration

  • Unified memory model and managed allocations
  • Page migration and on-demand paging mechanisms
  • Asynchronous prefetching via cudaMemPrefetchAsync
  • Memory advice hints regarding access patterns

System-Wide Profiling via Nsight Systems

  • Timeline analysis in Nsight Systems
  • Detecting CPU-GPU synchronization instances
  • Visualization of kernel runs and memory operations
  • Analysis of system-level performance metrics

Kernel Refinement with Nsight Compute

  • Interactive kernel profiling using Nsight Compute
  • Evaluation of memory throughput and bandwidth
  • Assessment of compute utilization and warp states
  • Guided analysis and optimization guidelines

Concurrent Streams and Asynchronous Tasks

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

Error Management and Debugging Utilities

  • CUDA API error codes and recovery methods
  • Memory access verification using compute-sanitizer
  • Kernel debugging with cuda-gdb
  • Assertions and synchronous error identification

Profiling-Based Optimization Process

  • Iterative profiling approach
  • Identification and ranking of bottlenecks
  • Testing for performance regressions
  • Recording optimization choices

Comprehensive Accelerated Application Project

  • Structuring a full GPU-accelerated solution
  • Embedding profiling throughout the development cycle
  • Performance benchmarking and documentation
  • Deployment factors for production environments

Requirements

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

Intended Audience

  • Software developers and engineers aiming to enhance C/C++ application speed using GPUs
  • Researchers in science and HPC professionals making the shift from CPU-exclusive to heterogeneous computing
  • Technical leaders assessing the viability of GPU acceleration for production-level workloads

Related Categories