Thank you for sending your enquiry! One of our team members will contact you shortly.
Thank you for sending your booking! One of our team members will contact you shortly.
Duration 28 hours
Course Outline
Introduction
- What is CUDA?
- Comparing CUDA with OpenCL and SYCL
- Overview of CUDA features and architecture
- Setting up the Development Environment
Getting Started
- Creating a new CUDA project using Visual Studio Code
- Exploring the project structure and associated files
- Compiling and executing the program
- Displaying output using printf and fprintf
CUDA API
- Understanding the role of the CUDA API in host programs
- Using the CUDA API to query device information and capabilities
- Using the CUDA API to allocate and deallocate device memory
- Using the CUDA API to copy data between host and device
- Using the CUDA API to launch kernels and synchronize threads
- Handling errors and exceptions using the CUDA API
CUDA C/C++
- Understanding the role of CUDA C/C++ in device programs
- Using CUDA C/C++ to write kernels that execute on the GPU and manipulate data
- Using CUDA C/C++ data types, qualifiers, operators, and expressions
- Using CUDA C/C++ built-in functions, such as math, atomic, and warp operations
- Using CUDA C/C++ built-in variables, such as threadIdx, blockIdx, and blockDim
- Using CUDA C/C++ libraries, such as cuBLAS, cuFFT, and cuRAND
CUDA Memory Model
- Understanding the differences between host and device memory models
- Using CUDA memory spaces, including global, shared, constant, and local
- Using CUDA memory objects, such as pointers, arrays, textures, and surfaces
- Using CUDA memory access modes, such as read-only, write-only, and read-write
- Understanding the CUDA memory consistency model and synchronization mechanisms
CUDA Execution Model
- Understanding the differences between host and device execution models
- Using CUDA threads, blocks, and grids to define parallelism
- Using CUDA thread functions, such as threadIdx, blockIdx, and blockDim
- Using CUDA block functions, such as __syncthreads and __threadfence_block
- Using CUDA grid functions, such as gridDim, gridSync, and cooperative groups
Debugging
- Understanding common errors and bugs in CUDA programs
- Using the Visual Studio Code debugger to inspect variables, set breakpoints, and analyze the call stack
- Using CUDA-GDB to debug CUDA programs on Linux
- Using CUDA-MEMCHECK to detect memory errors and leaks
- Using NVIDIA Nsight to debug and analyze CUDA programs on Windows
Optimization
- Understanding factors that impact CUDA program performance
- Using CUDA coalescing techniques to improve memory throughput
- Using CUDA caching and prefetching techniques to reduce memory latency
- Using CUDA shared and local memory techniques to optimize memory access and bandwidth
- Using CUDA profiling tools to measure and enhance execution time and resource utilization
Requirements
- Familiarity with C/C++ language fundamentals and parallel programming concepts
- Basic understanding of computer architecture and memory hierarchy
- Proficiency with command-line tools and code editors
Target Audience
- Developers seeking to learn how to use CUDA to program NVIDIA GPUs and exploit their parallelism
- Developers aiming to write high-performance, scalable code capable of running across different CUDA devices
- Programmers interested in exploring the low-level aspects of GPU programming and optimizing code performance