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
- An overview of what CUDA is.
- Comparing CUDA with OpenCL and SYCL.
- A look at 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 running 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 via the CUDA API.
CUDA C/C++
- Understanding the role of CUDA C/C++ in device programs.
- Writing kernels in CUDA C/C++ to execute on the GPU and manipulate data.
- Using CUDA C/C++ data types, qualifiers, operators, and expressions.
- Leveraging CUDA C/C++ built-in functions, such as math, atomic, and warp operations.
- Utilizing CUDA C/C++ built-in variables, such as threadIdx, blockIdx, and blockDim.
- Working with CUDA C/C++ libraries, including cuBLAS, cuFFT, and cuRAND.
CUDA Memory Model
- Distinguishing between host and device memory models.
- Using CUDA memory spaces, including global, shared, constant, and local.
- Managing CUDA memory objects, such as pointers, arrays, textures, and surfaces.
- Applying 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
- Distinguishing between host and device execution models.
- Using CUDA threads, blocks, and grids to define parallelism.
- Employing CUDA thread functions, such as threadIdx, blockIdx, and blockDim.
- Using CUDA block functions, such as __syncthreads and __threadfence_block.
- Utilizing CUDA grid functions, including gridDim, gridSync, and cooperative groups.
Debugging
- Identifying common errors and bugs in CUDA programs.
- Using the Visual Studio Code debugger to inspect variables, set breakpoints, and review the call stack.
- Debugging CUDA programs on Linux using CUDA-GDB.
- Detecting memory errors and leaks with CUDA-MEMCHECK.
- Debugging and analyzing CUDA programs on Windows using NVIDIA Nsight.
Optimization
- Understanding factors that influence CUDA program performance.
- Applying CUDA coalescing techniques to boost memory throughput.
- Utilizing CUDA caching and prefetching techniques to reduce memory latency.
- Optimizing memory access and bandwidth using CUDA shared and local memory techniques.
- Measuring and improving execution time and resource utilization through CUDA profiling and profiling tools.
Requirements
- A foundational understanding of the C/C++ language and parallel programming principles.
- Basic knowledge of computer architecture and memory hierarchy.
- Proficiency with command-line tools and code editors.
Target Audience
- Developers looking 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 various CUDA devices.
- Programmers interested in exploring the low-level aspects of GPU programming and optimizing code performance.